SELECT *, CASE WHEN `locality` LIKE "washington%" 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 = "UT" AND (locality IN ("washington") 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 31
Blah
SELECT *, "0" as `rank` FROM `wp_slides` WHERE st = "UT" 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 31
Blah
$9,489,0003350 W 600 NHurricane UT 84737View Listing
$6,804,42012 Acres Sr 9Hurricane UT 84737View Listing
$4,590,0001700 W Turf Sod RdHurricane UT 84737View Listing
$4,500,0001822 N Habitat DrWashington UT 84780View Listing
$4,490,0001021 W Churrea DrWashington UT 84780View Listing
$3,499,999823 W 3270 SHurricane UT 84737View Listing
$3,250,0001588 S 325 WHurricane UT 84737View Listing
$3,200,40015.24 Acres Located off of 600 NHurricane UT 84737View Listing
$3,100,0002325 E Dam RdWashington UT 84780View Listing
$2,899,9992911 E Dam RdWashington UT 84780View Listing
LIGHTBOX-IMAGES
LENDORS & TITLE COMPANIES
SELECT *, "0" as `rank` FROM `wp_slides` WHERE st = "UT" 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 31
Blah