SELECT *, CASE WHEN `locality` LIKE "omaha%" 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 = "NE" AND (locality IN ("omaha") 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 42
Blah
SELECT *, "0" as `rank` FROM `wp_slides` WHERE st = "NE" 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 42
Blah
$3,000,0006530 N Country Club RdOmaha NE 68152View Listing
$2,650,00011829 N 175th CirBennington NE 68007View Listing
$2,065,20016515 Riviera DrOmaha NE 68136View Listing
$1,990,0004629 S 187th StOmaha NE 68135View Listing
$1,899,0008707 N 96th StOmaha NE 68122View Listing
$1,884,0003305 N 168th StOmaha NE 68116View Listing
$1,800,0002910 S County Road 29Valley NE 68064View Listing
$1,799,9009808 Garvin RdOmaha NE 68122View Listing
$1,795,0005105 S 181st PlzOmaha NE 68135View Listing
$1,700,0003502 N 216th StOmaha NE 68022View Listing
LIGHTBOX-IMAGES
LENDORS & TITLE COMPANIES
SELECT *, "0" as `rank` FROM `wp_slides` WHERE st = "NE" 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 42
Blah