string(828) "SELECT COUNT(*) AS count,
sqrt(pow(69*(classifieds.lat - 53.75007), 2) + pow(42.5*(classifieds.lon - -2.48153), 2)) AS distance
FROM classifieds
WHERE 1 AND (classifieds.lat BETWEEN ('53.75007' - 50/69.0) AND ('53.75007' + 50/69.0)) AND (classifieds.lon BETWEEN ('-2.48153' - 50/42.5) AND ('-2.48153' + 50/42.5)) AND classifieds.make = "renault" AND classifieds.model = "megane" AND NOT (MATCH(title) AGAINST('(+(mot m.o.t m.o.t.) +(fail failed expired "run out"))' IN BOOLEAN MODE) OR MATCH(description) AGAINST('(+(mot m.o.t m.o.t.) +(fail failed expired "run out"))' IN BOOLEAN MODE) OR title LIKE '%no mot%' OR description LIKE '%no mot%') AND expiry >= NOW() AND ingested = 1
HAVING distance <= '50'
"
string(1130) "SELECT classifieds.*,
classifieds.seller as user_name,
NULL as user_email,
NULL as seller_id,
sqrt(pow(69*(classifieds.lat - 53.75007), 2) + pow(42.5*(classifieds.lon - -2.48153), 2)) AS distance , 0 AS title_match, 0 AS desc_match
FROM classifieds
WHERE 1 AND (classifieds.lat BETWEEN ('53.75007' - 50/69.0) AND ('53.75007' + 50/69.0)) AND (classifieds.lon BETWEEN ('-2.48153' - 50/42.5) AND ('-2.48153' + 50/42.5)) AND classifieds.make = "renault" AND classifieds.model = "megane" AND NOT (MATCH(title) AGAINST('(+(mot m.o.t m.o.t.) +(fail failed expired "run out"))' IN BOOLEAN MODE) OR MATCH(description) AGAINST('(+(mot m.o.t m.o.t.) +(fail failed expired "run out"))' IN BOOLEAN MODE) OR title LIKE '%no mot%' OR description LIKE '%no mot%') AND expiry >= NOW() AND ingested = 1
GROUP BY classifieds.id
HAVING distance <= '50' ORDER BY posted DESC, (title_match+desc_match) DESC LIMIT 0,20"
string(828) "SELECT COUNT(*) AS count,
sqrt(pow(69*(classifieds.lat - 53.75007), 2) + pow(42.5*(classifieds.lon - -2.48153), 2)) AS distance
FROM classifieds
WHERE 1 AND (classifieds.lat BETWEEN ('53.75007' - 90/69.0) AND ('53.75007' + 90/69.0)) AND (classifieds.lon BETWEEN ('-2.48153' - 90/42.5) AND ('-2.48153' + 90/42.5)) AND classifieds.make = "renault" AND classifieds.model = "megane" AND NOT (MATCH(title) AGAINST('(+(mot m.o.t m.o.t.) +(fail failed expired "run out"))' IN BOOLEAN MODE) OR MATCH(description) AGAINST('(+(mot m.o.t m.o.t.) +(fail failed expired "run out"))' IN BOOLEAN MODE) OR title LIKE '%no mot%' OR description LIKE '%no mot%') AND expiry >= NOW() AND ingested = 1
HAVING distance <= '90'
"
string(1130) "SELECT classifieds.*,
classifieds.seller as user_name,
NULL as user_email,
NULL as seller_id,
sqrt(pow(69*(classifieds.lat - 53.75007), 2) + pow(42.5*(classifieds.lon - -2.48153), 2)) AS distance , 0 AS title_match, 0 AS desc_match
FROM classifieds
WHERE 1 AND (classifieds.lat BETWEEN ('53.75007' - 90/69.0) AND ('53.75007' + 90/69.0)) AND (classifieds.lon BETWEEN ('-2.48153' - 90/42.5) AND ('-2.48153' + 90/42.5)) AND classifieds.make = "renault" AND classifieds.model = "megane" AND NOT (MATCH(title) AGAINST('(+(mot m.o.t m.o.t.) +(fail failed expired "run out"))' IN BOOLEAN MODE) OR MATCH(description) AGAINST('(+(mot m.o.t m.o.t.) +(fail failed expired "run out"))' IN BOOLEAN MODE) OR title LIKE '%no mot%' OR description LIKE '%no mot%') AND expiry >= NOW() AND ingested = 1
GROUP BY classifieds.id
HAVING distance <= '90' ORDER BY posted DESC, (title_match+desc_match) DESC LIMIT 0,20"
string(828) "SELECT COUNT(*) AS count,
sqrt(pow(69*(classifieds.lat - 53.75007), 2) + pow(42.5*(classifieds.lon - -2.48153), 2)) AS distance
FROM classifieds
WHERE 1 AND (classifieds.lat BETWEEN ('53.75007' - 90/69.0) AND ('53.75007' + 90/69.0)) AND (classifieds.lon BETWEEN ('-2.48153' - 90/42.5) AND ('-2.48153' + 90/42.5)) AND classifieds.make = "renault" AND classifieds.model = "megane" AND NOT (MATCH(title) AGAINST('(+(mot m.o.t m.o.t.) +(fail failed expired "run out"))' IN BOOLEAN MODE) OR MATCH(description) AGAINST('(+(mot m.o.t m.o.t.) +(fail failed expired "run out"))' IN BOOLEAN MODE) OR title LIKE '%no mot%' OR description LIKE '%no mot%') AND expiry >= NOW() AND ingested = 1
HAVING distance <= '90'
"
string(1130) "SELECT classifieds.*,
classifieds.seller as user_name,
NULL as user_email,
NULL as seller_id,
sqrt(pow(69*(classifieds.lat - 53.75007), 2) + pow(42.5*(classifieds.lon - -2.48153), 2)) AS distance , 0 AS title_match, 0 AS desc_match
FROM classifieds
WHERE 1 AND (classifieds.lat BETWEEN ('53.75007' - 90/69.0) AND ('53.75007' + 90/69.0)) AND (classifieds.lon BETWEEN ('-2.48153' - 90/42.5) AND ('-2.48153' + 90/42.5)) AND classifieds.make = "renault" AND classifieds.model = "megane" AND NOT (MATCH(title) AGAINST('(+(mot m.o.t m.o.t.) +(fail failed expired "run out"))' IN BOOLEAN MODE) OR MATCH(description) AGAINST('(+(mot m.o.t m.o.t.) +(fail failed expired "run out"))' IN BOOLEAN MODE) OR title LIKE '%no mot%' OR description LIKE '%no mot%') AND expiry >= NOW() AND ingested = 1
GROUP BY classifieds.id
HAVING distance <= '90' ORDER BY posted DESC, (title_match+desc_match) DESC LIMIT 0,20"
Cheap Renault Megane Cars For Sale In Blackburn, Lancashire With Valid MOT | Cheapmoto.co.uk