SELECT *, CASE WHEN `locality` LIKE "spring grove%" 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 ("spring grove") 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
$2,900,00018752 W Edwards RdAntioch IL 60002View Listing
$2,400,00036113 N Highway 45Lake Villa IL 60046View Listing
$2,325,00018922 W Grand AveLake Villa IL 60046View Listing
$1,690,000978 Eastshore DrFox Lake IL 60020View Listing
$1,650,00027254 W Nippersink RdFox Lake IL 60020View Listing
$1,500,000Eastwood DrRound Lake IL 60073View Listing
$1,350,00042601 N Linden LnAntioch IL 60002View Listing
$1,300,00026222 WRt 120 RdVolo IL 60073View Listing
$1,250,00042909 N Deep Lake RdAntioch IL 60002View Listing
$1,199,00040091 N Beck RdLake Villa IL 60046View Listing
$1,150,00042917 N Brighton Farm RdAntioch IL 60002View 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