SELECT *, CASE WHEN `locality` LIKE "mansfield%" 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 = "GA" AND (locality IN ("mansfield") 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 6
Blah
SELECT *, "0" as `rank` FROM `wp_slides` WHERE st = "GA" 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 6
Blah
$3,402,000219 Spears LnMansfield GA 30055View Listing
$2,900,0001530 Highway 11 SMansfield GA 30055View Listing
$2,000,00073 Paul Smith Rd Lot 173Covington GA 30014View Listing
$2,000,000460 Dixie RdCovington GA 30014View Listing
$2,000,00073 Paul Smith RdCovington GA 30014View Listing
$1,965,0001408 Alcovy Station RdCovington GA 30014View Listing
$1,950,0001940 Macedonia RdMansfield GA 30055View Listing
$1,780,0001800 Walnut AveCovington GA 30014View Listing
$1,745,9001760 Highway 138Covington GA 30014View Listing
$1,500,0003050 H D Atha RdCovington GA 30014View Listing
LIGHTBOX-IMAGES
LENDORS & TITLE COMPANIES
SELECT *, "0" as `rank` FROM `wp_slides` WHERE st = "GA" 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 6
Blah