SELECT *, CASE WHEN `locality` LIKE "tooleville%" 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 = "CA" AND (locality IN ("tooleville") 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 2
Blah
SELECT *, "0" as `rank` FROM `wp_slides` WHERE st = "CA" 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 2
Blah
$4,620,746Avenue # 232Lindsay CA 93247View Listing
$2,300,000411 E Marinette AveExeter CA 93221View Listing
$2,300,00020187 Avenue 262Exeter CA 93221View Listing
$1,783,20024000 Ave 244Lindsay CA 93247View Listing
$1,349,800186 High Sierra DrExeter CA 93221View Listing
$1,150,000562 Palma Villa St EExeter CA 93221View Listing
$1,095,00025328 Burr DrLindsay CA 93247View Listing
$847,0002405 Firebaugh Ave WExeter CA 93221View Listing
$829,900336 High Sierra DrExeter CA 93221View Listing
$825,55021014 Sentinel DrWoodlake CA 93286View Listing
$789,500206 High Sierra DrExeter CA 93221View Listing
LIGHTBOX-IMAGES
LENDORS & TITLE COMPANIES
SELECT *, "0" as `rank` FROM `wp_slides` WHERE st = "CA" 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 2
Blah