Error: Unable to perform query: SELECT a.nome AS nome_categoria, b.nome AS nome_famiglia, b.id_famiglia FROM catalogo_acquisto_cat AS a INNER JOIN catalogo_acquisto_famiglie AS b ON a.id_famiglia=b.id_famiglia WHERE a.id_categoria= ORDER BY a.ordine :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 'ORDER BY a.ordine' at line 4