Query: SELECT * FROM photos WHERE user_group = 'A fatal MySQL error occured.
Query: SELECT * FROM groups WHERE user_id = AND label = 'user'
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 label = 'user'' at line 1' AND user_group != 0 AND id != 5785 AND approved = 'true'
";}