* dbIncludeStore: (select mp.* FROM model_products bp join select distinct p.* from prod_cats pc join products p ON pc.storeID=p.storeID and pc.productID=p.productID WHERE pc.storeID=2 and catID=36 and status=1 ORDER BY pc.sortorder mp on bp.storeID=mp.storeID and bp.productID=mp.productID where bp.storeID=2 and modelID=95) UNION (select mp.* FROM select p.* from prod_cats pc join products p ON pc.storeID=p.storeID and pc.productID=p.productID WHERE pc.storeID=2 and catID=36 and all_models=1 and status=1 ORDER BY pc.sortorder mp)
Array
(
    [sql] => (select mp.* FROM model_products bp join select distinct p.* from prod_cats pc join products p ON pc.storeID=p.storeID and pc.productID=p.productID WHERE pc.storeID=2 and catID=36 and status=1 ORDER BY pc.sortorder mp on bp.storeID=mp.storeID and bp.productID=mp.productID where bp.storeID=2 and modelID=95) UNION (select mp.* FROM select p.* from prod_cats pc join products p ON pc.storeID=p.storeID and pc.productID=p.productID WHERE pc.storeID=2 and catID=36 and all_models=1 and status=1 ORDER BY pc.sortorder mp)
    [left] => 
    [from] => 
    [on] => Array
        (
        )

    [where] => 
    [right] => 
)
* dbIncludeStore: (select mp.* FROM model_products bp join select distinct p.* from prod_cats pc join products p ON pc.storeID=p.storeID and pc.productID=p.productID WHERE pc.storeID=2 and catID=7 and status=1 ORDER BY pc.sortorder mp on bp.storeID=mp.storeID and bp.productID=mp.productID where bp.storeID=2 and modelID=95) UNION (select mp.* FROM select p.* from prod_cats pc join products p ON pc.storeID=p.storeID and pc.productID=p.productID WHERE pc.storeID=2 and catID=7 and all_models=1 and status=1 ORDER BY pc.sortorder mp)
Array
(
    [sql] => (select mp.* FROM model_products bp join select distinct p.* from prod_cats pc join products p ON pc.storeID=p.storeID and pc.productID=p.productID WHERE pc.storeID=2 and catID=7 and status=1 ORDER BY pc.sortorder mp on bp.storeID=mp.storeID and bp.productID=mp.productID where bp.storeID=2 and modelID=95) UNION (select mp.* FROM select p.* from prod_cats pc join products p ON pc.storeID=p.storeID and pc.productID=p.productID WHERE pc.storeID=2 and catID=7 and all_models=1 and status=1 ORDER BY pc.sortorder mp)
    [left] => 
    [from] => 
    [on] => Array
        (
        )

    [where] => 
    [right] => 
)