SELECT * FROM wc_settings SELECT id FROM wc_ip_ban WHERE ip_as_int=387237043 SELECT * FROM wc_images ORDER by id DESC LIMIT 0,10 SELECT * FROM wc_images WHERE id NOT IN (0,270,269,263,262,261,260,259,258,257,256) ORDER BY times_sent_month DESC LIMIT 0,10 SELECT * FROM wc_images WHERE featured=1 ORDER by id DESC LIMIT 0,10 SELECT * FROM wc_images AS r1 JOIN (SELECT MAX(id) as wid_c FROM wc_images) as tmp1 WHERE r1.id >= (SELECT (RAND() * tmp1.wid_c) AS id) AND id NOT IN (0,270,269,263,262,261,260,259,258,257,256,235,51,123,128,136,141,2,3,4,5) LIMIT 10 SELECT * FROM wc_images WHERE id IN (21,23,78,40,45,48,60,61,63,64) ORDER BY RAND() LIMIT 0,10 SELECT event_id,event_title,event_slug,event_desc,event_colour,event_day,user_id FROM wc_events WHERE ((event_month='5' AND event_year='2013') OR (event_month='5' AND event_year='an')) AND (user_id=0 OR user_id=0) ORDER BY event_id ASC