- | 238225 | ag_user | localhost | ag_portal | Query | 1 | Sending data | SELECT * FROM ag_category c
- LEFT JOIN ag_category_description cd ON (c.category_id = cd.category_id)
- LEFT JOIN ag_category_to_store c2s ON (c.category_id = c2s.category_id)
- WHERE c.parent_id in (1502,1510,1519,1521,1526,1530,1535,1539,1544,1552,1554,1557,1565,1569,1571,1574,1575,1576,1577,1578,1579,1583,1584,1585,1586,1587,1589,1590,1592,1594,1595,1597,1598,1600,1601,1602) AND c.origin_SAP = 'FILTRO'
- AND
- (
- select count(*) from ag_product_to_category ptc1 where ptc1.category_id = c.category_id
- and
- (
- select count(*) from ag_product_to_category ptc2 where ptc2.product_id = ptc1.product_id
- and ptc2.category_id = 1120
- and
- (
- select count(*) from ag_product p where p.product_id = ptc2.product_id and p.status = '1' and p.quantity > 2
- ) > 0
- ) > 0
- ) > 0
- AND cd.language_id = '1'
- AND c2s.store_id = '0'
- AND c.status = '1'
- ORDER BY c.sort_order, LCASE(cd.name) |
- | 238226 | ag_user | localhost | ag_portal | Query | 0 | Sending data | SELECT * FROM ag_category c
- LEFT JOIN ag_category_description cd ON (c.category_id = cd.category_id)
- LEFT JOIN ag_category_to_store c2s ON (c.category_id = c2s.category_id)
- WHERE c.parent_id in (1502,1510,1519,1521,1526,1530,1535,1539,1544,1552,1554,1557,1565,1569,1571,1574,1575,1576,1577,1578,1579,1583,1584,1585,1586,1587,1589,1590,1592,1594,1595,1597,1598,1600,1601,1602) AND c.origin_SAP = 'FILTRO'
- AND
- (
- select count(*) from ag_product_to_category ptc1 where ptc1.category_id = c.category_id
- and
- (
- select count(*) from ag_product_to_category ptc2 where ptc2.product_id = ptc1.product_id
- and ptc2.category_id = 428
- and
- (
- select count(*) from ag_product p where p.product_id = ptc2.product_id and p.status = '1' and p.quantity > 2 AND p.manufacturer_id = 45
- ) > 0
- ) > 0
- ) > 0
- AND cd.language_id = '1'
- AND c2s.store_id = '0'
- AND c.status = '1'
- ORDER BY c.sort_order, LCASE(cd.name) |
Untitled
Posted by NotLim on Sun 5th Jan 2014 14:41
raw | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.
hn.kpaste.net RSS