SELECT * FROM wc_settings SELECT id FROM wc_categories WHERE disabled=1 SELECT id, description FROM wc_categories WHERE slug='festive-images' AND disabled=0 LIMIT 1 SELECT * FROM wc_images ORDER by id DESC LIMIT 0,10 SELECT * FROM `wc_images` ORDER BY times_sent DESC LIMIT 0,10 SELECT event_id,event_title,event_day FROM wc_events WHERE (event_month='7' AND event_year='2010') OR (event_month='7' AND event_year='an') ORDER BY event_id ASC SELECT terms, count(id) as count FROM wc_searchlog WHERE results > 0 GROUP BY terms LIMIT 0, 1000