SQL ERROR:
select CONCAT(pic.path,"_170",pic.type) AS pic_small, member_info.id as member_info_id, member_info.location_address, FROM media_info AS pic, member_info WHERE
pic.id = member_info.member_portrait_0 and
member_info.activation_code = "0" and
member_info.deleted = 0 group by member_info.id;
ERROR:
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 'FROM media_info AS pic, member_info WHERE
pic.id = member_info.member_por' at line 1

