Deprecated: Function set_magic_quotes_runtime() is deprecated in /home1/aceroths/public_html/seniorpictures.info/admin/config.php on line 130

Notice: Undefined index: c in /home1/aceroths/public_html/seniorpictures.info/profile2.php on line 35
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 cm.c_status='active' and cm.status='paid' and current_date() <= cm.expire_da' at line 3

SELECT u.email,u.id user_id,c.city_name,c.id city_id,cm.id campaign_id,cm.user_type user_type,cm.listing listing FROM cities c, campaign cm,gallery g, users u WHERE cm.city_id=c.id AND cm.id=g.campaign_id AND u.id=cm.user_id AND c.id= AND cm.c_status='active' and cm.status='paid' and current_date() <= cm.expire_date GROUP BY cm.id ORDER BY cm.user_type='gold' DESC,u.id LIMIT 0, 3

[TEP STOP]