SELECT `customer_teaser`.*, (SELECT COUNT(1) AS total
FROM (
SELECT
`customer_teaser`.`id`
FROM
`fl_dealers_recomendados`, `customer_teaser`
WHERE
`customer_teaser`.`id` = `fl_dealers_recomendados`.`id_dealer` AND `customer_teaser`.`state` = 1
AND (`customer_teaser`.`accounttype_id` = 10) AND (`customer_teaser`.`compania` LIKE CONCAT('P','%')) AND (`customer_teaser`.`id` NOT IN (17,680,1392))
) AS Result) AS total
FROM `fl_dealers_recomendados`, `customer_teaser`
WHERE `customer_teaser`.`id` = `fl_dealers_recomendados`.`id_dealer` AND `customer_teaser`.`state` = 1
AND (`customer_teaser`.`accounttype_id` = 10) AND (`customer_teaser`.`compania` LIKE CONCAT('P','%')) AND (`customer_teaser`.`id` NOT IN (17,680,1392)) ORDER BY `customer_teaser`.`compania` ASC LIMIT 0,8;
SELECT `customer_teaser`.*, (SELECT COUNT(1) AS total
FROM (
SELECT
`customer_teaser`.`id`
FROM
`fl_dealers_recomendados`, `customer_teaser`
WHERE
`customer_teaser`.`id` = `fl_dealers_recomendados`.`id_dealer` AND `customer_teaser`.`state` = 1
AND (`customer_teaser`.`accounttype_id` = 10) AND (`customer_teaser`.`compania` LIKE CONCAT('P','%')) AND (`customer_teaser`.`id` NOT IN (17,680,1392))
) AS Result) AS total
FROM `fl_dealers_recomendados`, `customer_teaser`
WHERE `customer_teaser`.`id` = `fl_dealers_recomendados`.`id_dealer` AND `customer_teaser`.`state` = 1
AND (`customer_teaser`.`accounttype_id` = 10) AND (`customer_teaser`.`compania` LIKE CONCAT('P','%')) AND (`customer_teaser`.`id` NOT IN (17,680,1392)) ORDER BY `customer_teaser`.`compania` ASC
Prospera Auto
(809) 475-9990 / (809) 902-7888
Calle Barney Morgan No. 200, Ensanche Luperón, Santo Domingo, República Dominicana
MIEMBRO DE: