SELECT *, CASE WHEN `locality` LIKE "downs%" 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 = "IL" AND (locality IN ("downs") 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 12
Blah
SELECT *, "0" as `rank` FROM `wp_slides` WHERE st = "IL" 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 12
Blah
$849,9007 Cherrywood LnBloomington IL 61701View Listing
$840,00025087 Chestnut Dr Lot 1Le Roy IL 61752View Listing
$650,00011 Sunset RdBloomington IL 61701View Listing
$633,9003 Moore RdBloomington IL 61701View Listing
$596,114908-910 Four Seasons RdBloomington IL 61701View Listing
$565,00020710 E 200 North RdLe Roy IL 61752View Listing
$524,900406-408 Detroit DrBloomington IL 61704View Listing
$445,0008818 E 1400 North RdBloomington IL 61705View Listing
LIGHTBOX-IMAGES
LENDORS & TITLE COMPANIES
SELECT *, "0" as `rank` FROM `wp_slides` WHERE st = "IL" 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 12
Blah