SELECT *, CASE WHEN `locality` LIKE "coralville%" 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 = "IA" AND (locality IN ("coralville") 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 = "IA" 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
$6,550,0004246 Sycamore St SEIowa City IA 52240View Listing
$4,500,000Naples AveNorth Liberty IA 52317View Listing
$4,194,4003252 Rohret Rd SWIowa City IA 52246View Listing
$3,200,000100 Vintage Blvd Cardinal Blvd Unit CampCoralville IA 52241View Listing
$2,126,2502935 Buchmayer Bnd NEIowa City IA 52240View Listing
$2,100,000460 Kennedy PkwyIowa City IA 52246View Listing
$2,000,000Jones Outlot A Blvd Lot 1Coralville IA 52241View Listing
$1,950,000Dane Rd SWIowa City IA 52240View Listing
$1,635,000Ne Cor S and MccollisterIowa City IA 52240View Listing
LIGHTBOX-IMAGES
LENDORS & TITLE COMPANIES
SELECT *, "0" as `rank` FROM `wp_slides` WHERE st = "IA" 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