Datenbank Fehler: Invalid SQL: SELECT COUNT(*) FROM galerie_images WHERE galerie_id= AND image_activ=1 GROUP BY image_id ORDER BY image_position ASC

MySQL Error: 1064 (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 image_activ=1 GROUP BY image_id ORDER BY image_position ASC' at line 1)
Session halted.