SELECT t.url, c.number FROM smcontents_b_map_object o, smcontents_c_stage c, smcontents_tree t WHERE o.mag = AND c.parent = o.parent AND t.id = o.parent GROUP BY c.number
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 c.parent = o.parent AND t.id = o.parent GROUP BY c.number' at line 2