Hi, I'm having a bit of trouble getting my query to work properly.
Basically, I need to use an OR operator - Which seem non-existent in Mediawiki unless you use the query function. The issue is, however, that the query function doesn't recognize shared database tables - Which I need.
Here's how my query looks:
SELECT post_id FROM `blog_posts` WHERE type = "published" AND '.$comp_author.' = "'.$author_get.'" AND ('.$comp_tag_1.' = "'.$tag_get.'" OR '.$comp_tag_2.' = "'.$tag_get.'" OR '.$comp_tag_3.' = "'.$tag_get.'" OR '.$comp_tag_4.' = "'.$tag_get.'" OR '.$comp_tag_5.' = "'.$tag_get.'") ORDER BY post_datetime DESC LIMIT 6'.$f_offet.'
How can I make use of the OR operator using Mediawiki's query system?