You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND id_cat = 10 AND id_scat = 24 GROUP BY id_arg' at line 1