SQL Error (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 'OR s.`tag_id` = 'all_pages' OR s.`tag_id` = 'all_people') GROUP BY p.`id` ORDE' at line 1
SELECT s.`tag_id`, pm.`meta_value` as `story_permalink`, p.* FROM `c4_term_relationships` tr LEFT JOIN `c4_terms` t on t.`term_id`=tr.`term_taxonomy_id` LEFT JOIN `c4_posts` p on tr.`object_id`=p.`id` and t.`name`='SEA News' LEFT JOIN `sharp_post2tag` s ON s.`page_id` = p.`id` AND (p.`post_status` = 'publish' or p.`post_status` = 'private') LEFT JOIN `c4_postmeta` pm ON pm.`post_id` = p.`id` AND pm.`meta_key` LIKE 'story_permalink' WHERE p.`id` IS NOT NULL AND pm.`meta_value` IS NOT NULL AND (s.`tag_id`= OR s.`tag_id` = 'all_pages' OR s.`tag_id` = 'all_people') GROUP BY p.`id` ORDER BY p.`post_date` DESC LIMIT 25
Stack Trace:
/home/SEA/sea-trunk/includes/sharp_db.class.php#192 : query
/home/SEA/sea-trunk/content-shared/wp-themes/sharp-network/functions.php#834 : query_assoc_array
/home/SEA/sea-trunk/content-shared/wp-themes/sharp-network/functions.php#778 : sharp_get_tagged_posts
/home/SEA/sea-trunk/content-shared/wp-themes/sharp-network/person.php#44 : sharp_get_person_tagged_posts
/home/SEA/sea-trunk/www-sharp-c3/wp-includes/template-loader.php#33 : include
/home/SEA/sea-trunk/www-sharp-c3/wp-blog-header.php#21 : require_once
/home/SEA/sea-trunk/www-sharp-c3/index.php#4 : require
Jonathan Elrod