Database error with function: Get Gallery111
SQL: SELECT g.*,COUNT(i.image_id) AS images FROM galleries g LEFT OUTER JOIN images i ON g.gallery_id=i.gallery_id WHERE showtype='public' and g.user_id= GROUP BY g.gallery_id
mySQL Says: 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 'GROUP BY g.gallery_id' at line 1