Forum Moderators: open
thanks guys.
That way in future searches you just do "WHERE blah AND blah AND `abusive` "
To do what you are asking however, try this:
SELECT DISTINCT `user_posts`.`postid` FROM `abusive_terms`,`user_posts` WHERE `user_posts`.`title` LIKE CONCAT('%',`abusive_terms`.`swear_word`,'%')