SELECT *, CASE WHEN `locality` LIKE "kirksville%" AND `slide_location` = "" AND `logo_file_name` IS NOT NULL THEN 10 WHEN `slide_location` = "" AND `logo_file_name` IS NOT NULL THEN 5 END as `rank` FROM `wp_slides` WHERE st = "MO" AND (locality IN ("kirksville") OR locality IS NULL) AND (cat IS NULL) AND name NOT IN ("home-top", "home-bot") AND (slide_file_name IS NOT NULL AND slide_file_name != "") AND (slide_location IS NULL OR slide_location = "") AND name NOT IN ("agent") AND active = 1 ORDER BY `rank` DESC LIMIT 12
[0] matching rows / [0.00 msec]
Blog ID
Blah
SELECT *, "0" as `rank` FROM `wp_slides` WHERE st = "MO" AND (cat IS NULL) AND (slide_file_name IS NOT NULL AND slide_file_name != "") AND (slide_location IS NULL OR slide_location = "") AND active = 1 ORDER BY `rank` DESC LIMIT 12
[0] matching rows / [0.00 msec]
Blog ID
Blah
$399,00019578 Liatris TrlKirksville MO 63501View Listing
$396,000Booneville TrlNovinger MO 63559View Listing
$364,90023530 Greystone LnKirksville MO 63501View Listing
$359,000515 Rosewood DrKirksville MO 63501View Listing
$289,90022407 Acorn TrlKirksville MO 63501View Listing
$273,00030721 E Center WayKirksville MO 63501View Listing
$250,000Queens Rd and Bowers DrKirksville MO 63501View Listing
$165,00021396 Morton RdKirksville MO 63501View Listing
$126,000Billy Creek TrlNovinger MO 63559View Listing
LIGHTBOX-IMAGES
LENDORS & TITLE COMPANIES
SELECT *, "0" as `rank` FROM `wp_slides` WHERE st = "MO" AND (cat = "lenders" OR cat IS NULL) AND (slide_file_name IS NOT NULL AND slide_file_name != "") AND (slide_location IS NULL OR slide_location = "") AND active = 1 ORDER BY `rank` DESC LIMIT 12
[0] matching rows / [0.00 msec]
Blog ID
Blah