SQL: 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 's Cat%' ) AS tt ON t.id=tt.topic_id WHERE (t.date>0) A' at line 13
Query: SELECT t.* FROM users as u, topics as t LEFT JOIN blogs as b on t.pid=b.id JOIN ( SELECT `topic_id` FROM `topics_tags` WHERE `tag` LIKE '%Simon's Cat%' ) AS tt ON t.id=tt.topic_id WHERE (t.date>0) AND t.user=u.id GROUP by t.id