SELECT escaparates.id, escaparates.name, escaparates.alias, escaparates.description, escaparates.intro_desc, escaparates.image_url, escaparates.image_path, escaparates.image_caption, escaparates.concepto_precio, escaparates.price, escaparates.subcategoria_alias, escaparates.categoria_alias, regiones.name as localidad, (6371 * ACOS(SIN(RADIANS(escaparates.latitude)) * SIN(RADIANS()) + COS(RADIANS(escaparates.longitude - )) * COS(RADIANS(escaparates.latitude)) * COS(RADIANS()))) AS distance FROM escaparates INNER JOIN regiones ON regiones.id = escaparates.region_id WHERE escaparates.published > 0 AND escaparates.cat_id = 0 AND (escaparates.latitude BETWEEN -1.3489824088781 AND 1.3489824088781) AND (escaparates.longitude BETWEEN -1.3489824088781 AND 1.3489824088781) HAVING distance < 150 ORDER BY distance ASC LIMIT 0, 6

Truncated incorrect INTEGER value: