SELECT *, CASE WHEN `locality` LIKE "bishop%" 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 = "TX" AND (locality IN ("bishop") 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 37
Blah
SELECT *, CASE WHEN `locality` LIKE "bishop%" AND `slide_location` = "city-agent" AND `logo_file_name` IS NOT NULL THEN 10 WHEN `slide_location` = "city-agent" AND `logo_file_name` IS NOT NULL THEN 5 END as `rank` FROM `wp_slides` WHERE st = "TX" AND (locality IN ("bishop") OR locality IS NULL) AND slide_location IN ("city-agent") AND active = 1 ORDER BY `rank` DESC LIMIT 12
[4] matching rows / [0.00 msec]
Blog ID 37
Blah
$495,0001420 Senator Carlos Truan Blvd Lot 6Kingsville TX 78363View Listing
$459,900344 Charles StKingsville TX 78363View Listing
$430,000334 W County Road 2160Kingsville TX 78363View Listing
$425,000703 Elizabeth AveKingsville TX 78363View Listing
$399,900681 N County Road 1080 Lot PS30Kingsville TX 78363View Listing
$359,900631 W Escondido RdKingsville TX 78363View Listing
$355,0005114 AL Theis StBishop TX 78343View Listing
$350,0001001 N Hackberry StBishop TX 78343View Listing
$350,0001236 FM 892 Lot 4Bishop TX 78343View Listing
LIGHTBOX-IMAGES
LENDORS & TITLE COMPANIES
SELECT *, CASE WHEN `locality` LIKE "bishop%" AND `slide_location` = "city-lenders-title-lower" AND `logo_file_name` IS NOT NULL THEN 10 WHEN `slide_location` = "city-lenders-title-lower" AND `logo_file_name` IS NOT NULL THEN 5 END as `rank` FROM `wp_slides` WHERE st = "TX" AND (locality IN ("bishop") OR locality IS NULL) AND slide_location IN ("city-lenders-title-lower") AND active = 1 ORDER BY `rank` DESC LIMIT 12
[2] matching rows / [0.00 msec]
Blog ID 37
Blah