SELECT *, CASE WHEN `locality` LIKE "ricardo%" 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 ("ricardo") 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 "ricardo%" 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 ("ricardo") 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
$349,9001720 S Brahma Blvd Lot 83Kingsville TX 78363View Listing
$280,000381 W County Road 2140Kingsville TX 78363View Listing
$250,0001257 E County Road 2327Riviera TX 78379View Listing
$249,0001709 S 7th StKingsville TX 78363View Listing
LIGHTBOX-IMAGES
LENDORS & TITLE COMPANIES
SELECT *, CASE WHEN `locality` LIKE "ricardo%" 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 ("ricardo") 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