SELECT SQL_CALC_FOUND_ROWS `wp3_posts` . `ID` FROM `wp3_posts` WHERE ? = ? AND ( ( ( `wp3_posts` . `post_title` LIKE ? ) OR ( `wp3_posts` . `post_content` LIKE ? ) ) AND ( ( `wp3_posts` . `post_title` LIKE ? ) OR ( `wp3_posts` . `post_content` LIKE ? ) ) AND ( ( `wp3_posts` . `post_title` LIKE ? ) OR ( `wp3_posts` . `post_content` LIKE ? ) ) AND ( ( `wp3_posts` . `post_title` LIKE ? ) OR ( `wp3_posts` . `post_content` LIKE ? ) ) ) AND ( `wp3_posts` . `post_password` = ? ) AND `wp3_posts` . `post_type` IN (...) AND ( `wp3_posts` . `post_status` = ? ) ORDER BY ( CASE WHEN `wp3_posts` . `post_title` LIKE ? THEN ? WHEN `wp3_posts` . `post_title` LIKE ? AND `wp3_posts` . `post_title` LIKE ? AND `wp3_posts` . `post_title` LIKE ? AND `wp3_posts` . `post_title` LIKE ? THEN ? WHEN `wp3_posts` . `post_title` LIKE ? OR `wp3_posts` . `post_title` LIKE ? OR `wp3_posts` . `post_title` LIKE ? OR `wp3_posts` . `post_title` LIKE ? THEN ? WHEN `wp3_posts` . `post_content` LIKE ? THEN ? ELSE ? END ) , `wp3_posts` . `post_date` DESC LIMIT ?, ... 