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('I','%')) 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('I','%')) 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('I','%')) 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('I','%')) AND (`customer_teaser`.`id` NOT IN (17,680,1392)) ORDER BY `customer_teaser`.`compania` ASC
ICM Autos, SRL
(809) 920-8744 / (829) 806-8898
Calle Rafael Abreu Licairiac No. 54, Los Prados Santo Domingo, República Dominicana
MIEMBRO DE: