SELECT ricetta, ing_principale
FROM ricetta
INNEr JOIN tipo_piatto ON tipo_piatto.id = ricetta.tipo_piatto
WHERE 1
AND data_approvazione IS NOT NULL
GROUP BY ricetta.id
ORDER BY ricetta
LIMIT 0.php;, 30
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 '0.php;, 30' at line 10