SELECT * FROM wc_settings 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='2' AND event_year='2010') OR (event_month='2' 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