You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'and subcatID ='15' AND trash = 0 AND active = 1 ORDER BY data_ins DESC' at line 1
Sql di partenza : SELECT * FROM artisti WHERE catID = and subcatID ='15' AND trash = 0 AND active = 1 ORDER BY data_ins DESC