SELECT *, CASE WHEN `locality` LIKE "citrus hills%" 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 = "FL" AND (locality IN ("citrus hills") 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 4
Blah
SELECT *, "0" as `rank` FROM `wp_slides` WHERE st = "FL" 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 4
Blah
$3,100,0002536 N Reston TerHernando FL 34442View Listing
$3,000,0003217 W Gulf to Lake HwyLecanto FL 34461View Listing
$2,400,0006750 N San Juan TerCrystal River FL 34428View Listing
$2,360,0001267 N Jorie TerCrystal River FL 34429View Listing
$2,200,000863 W Roosevelt BlvdBeverly Hills FL 34465View Listing
$2,000,0002351 W Woodview LnLecanto FL 34461View Listing
$1,900,00010631 E Lucas TrlInverness FL 34450View Listing
$1,850,000300 Vista AveInverness FL 34450View Listing
$1,750,0001209 SE Us Highyway # 19Crystal River FL 34429View Listing
LIGHTBOX-IMAGES
LENDORS & TITLE COMPANIES
SELECT *, "0" as `rank` FROM `wp_slides` WHERE st = "FL" 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 4
Blah