WhatsApp Connect

Les de folie 😲

Load Time 4976 ms
Querying Time 2313 ms
Queries 7639
Memory Peak Usage 144.4 Mb
Included Files 1269 files - 15.18 Mb
PrestaShop Cache - Mb
Global vars 0.74 Mb
PrestaShop Version 8.1.3
PHP Version 8.1.30
MySQL Version 10.6.20-MariaDB
Memory Limit 2048M
Max Execution Time 3600s
Smarty Cache enabled
Smarty Compilation auto
  Time Cumulated Time Memory Usage Memory Peak Usage
config 71.884 ms 71.884 ms 23.33 Mb 23.8 Mb
__construct 0.049 ms 71.933 ms - Mb 23.8 Mb
init 191.072 ms 263.005 ms 12.52 Mb 35.9 Mb
checkAccess 0.002 ms 263.007 ms - Mb 35.9 Mb
setMedia 25.823 ms 288.830 ms 1.37 Mb 37.5 Mb
postProcess 0.002 ms 288.832 ms - Mb 37.5 Mb
initHeader 0.002 ms 288.834 ms - Mb 37.5 Mb
initContent 3245 ms 3533 ms 68.42 Mb 116.0 Mb
initFooter 0.003 ms 3533 ms - Mb 116.0 Mb
display 1442 ms 4976 ms 37.57 Mb 144.4 Mb
Hook Time Memory Usage
displayHome 3006 ms 61.26 Mb
OverrideLayoutTemplate 395.742 ms 34.23 Mb
DisplayHeader 121.799 ms 1.01 Mb
ActionOutputHTMLBefore 87.225 ms 0.06 Mb
ActionFrontControllerInitAfter 43.526 ms 2.90 Mb
Header 6.954 ms 0.34 Mb
DisplayBeforeBodyClosingTag 4.160 ms 0.35 Mb
ActionFrontControllerSetMedia 2.781 ms 0.13 Mb
ActionDispatcherBefore 0.886 ms 0.01 Mb
DisplayProductPriceBlock 0.349 ms 0.20 Mb
DisplayOverrideTemplate 0.012 ms - Mb
ActionObjectAddAfter 0.012 ms - Mb
DisplayAfterBodyOpeningTag 0.009 ms - Mb
ActionObjectUpdateAfter 0.007 ms - Mb
DisplayHome 0.006 ms - Mb
15 hook(s) 3670 ms 100.49 Mb
Module Time Memory Usage
ps_mbo 43.387 ms 3.23 Mb
ets_ordermanager 35.738 ms 2.70 Mb
ets_productmanager 28.849 ms 1.99 Mb
creativeelements 468.575 ms 39.97 Mb
blockreassurance 3.588 ms 0.22 Mb
blockwishlist 1.058 ms 0.06 Mb
ps_emailsubscription 3.933 ms 0.22 Mb
ps_emailalerts 4.357 ms 0.31 Mb
revolutpayment 12.485 ms 0.90 Mb
ets_payment_with_fee 11.098 ms 0.69 Mb
ets_superspeed 94.488 ms 0.48 Mb
ps_imageslider 10.615 ms 0.40 Mb
ps_googleanalytics 2.807 ms 0.16 Mb
paypal 20.560 ms 1.05 Mb
ps_searchbar 0.751 ms 0.03 Mb
productcomments 3.227 ms 0.18 Mb
boxtalconnect 129.274 ms 1.38 Mb
whatsappconnect 1.487 ms 0.07 Mb
ps_featuredproducts 133.505 ms 4.49 Mb
ps_banner 2.881 ms 0.08 Mb
ps_customtext 4.805 ms 0.12 Mb
ps_specials 2863 ms 56.62 Mb
psgdpr 2.536 ms 0.20 Mb
ps_mainmenu 2.332 ms 0.26 Mb
statsdata 3.438 ms 0.33 Mb
25 module(s) 3888 ms 116.15 Mb

Stopwatch SQL - 7639 queries

# Query Time (ms) Rows Filesort Group By Location
191
SELECT SQL_NO_CACHE p.*, product_shop.*, stock.out_of_stock, IFNULL(stock.quantity, 0) as quantity, pl.`description`, pl.`description_short`, pl.`available_now`, pl.`available_later`,
IFNULL(product_attribute_shop.id_product_attribute, 0) id_product_attribute,
pl.`link_rewrite`, pl.`meta_description`, pl.`meta_keywords`, pl.`meta_title`,
pl.`name`, image_shop.`id_image` id_image, il.`legend`, m.`name` AS manufacturer_name,
DATEDIFF(
p.`date_add`,
DATE_SUB(
"2024-12-04 00:00:00",
INTERVAL 30 DAY
)
) > 0 AS new
FROM `psgh_product` p
INNER JOIN psgh_product_shop product_shop
ON (product_shop.id_product = p.id_product AND product_shop.id_shop = 1)
LEFT JOIN `psgh_product_attribute_shop` product_attribute_shop
ON (p.`id_product` = product_attribute_shop.`id_product` AND product_attribute_shop.`default_on` = 1 AND product_attribute_shop.id_shop=1)
LEFT JOIN psgh_stock_available stock
ON (stock.id_product = `p`.id_product AND stock.id_product_attribute = 0 AND stock.id_shop = 1  AND stock.id_shop_group = 0  )
LEFT JOIN `psgh_product_lang` pl ON (
p.`id_product` = pl.`id_product`
AND pl.`id_lang` = 2 AND pl.id_shop = 1 
)
LEFT JOIN `psgh_image_shop` image_shop
ON (image_shop.`id_product` = p.`id_product` AND image_shop.cover=1 AND image_shop.id_shop=1)
LEFT JOIN `psgh_image_lang` il ON (image_shop.`id_image` = il.`id_image` AND il.`id_lang` = 2)
LEFT JOIN `psgh_manufacturer` m ON (m.`id_manufacturer` = p.`id_manufacturer`)
WHERE product_shop.`active` = 1
AND product_shop.`show_price` = 1
AND product_shop.`visibility` IN ("both", "catalog")
AND p.`id_product` IN (53, 54, 56, 57, 62, 63, 624, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 806, 808, 809, 810, 807, 893, 895, 943, 341, 460, 344, 345, 348, 359, 365, 488, 373, 377, 378, 963, 976, 459, 467, 468, 354, 355, 472, 474, 358, 478, 363, 366, 367, 368, 369, 480, 482, 483, 484, 485, 486, 491, 492, 493, 496, 499, 500, 464, 476, 353, 351, 352, 376, 469, 360, 364, 498, 1041, 974, 814, 395, 539, 538, 531, 1030, 1031, 1032, 837, 732, 736, 737, 734, 865, 838, 722, 269, 293, 297, 242, 240, 235, 236, 249, 237, 239, 312, 257, 259, 238, 258, 553, 552, 972, 971, 995, 266, 559, 560, 251, 311, 254, 260, 999, 1000, 983, 982, 979, 577, 576, 1003, 954, 953, 966, 989, 1002, 567, 564, 562, 556, 546, 545, 542, 541, 945, 1017, 1023, 573, 519, 951, 289, 965, 1019, 361, 596, 569, 547, 1025, 831, 842, 927, 1033, 852, 823, 307, 287, 267, 231, 224, 568, 572, 233, 849, 864, 718, 856, 729, 717, 932, 931, 438, 390, 869, 898, 1039, 305, 490, 385, 291, 292, 325, 268, 304, 265, 939, 313, 320, 321, 316, 263, 317, 262, 290, 296, 941, 443, 415, 392, 393, 410, 405, 1010, 510, 511, 524, 513, 522, 1021, 247, 270, 275, 967, 309, 310, 726, 725, 881, 873, 894, 874, 853, 836, 847, 867, 868, 738, 741, 835, 827, 721, 733, 323, 324, 329, 331, 876, 714, 897, 1026, 299, 300, 566, 565, 830, 1042, 889, 1053, 1048, 743, 888, 1050, 829, 926, 828, 846, 841, 716, 840, 1051, 504, 505, 1056, 1055, 1058, 1059, 1057, 294, 942, 544, 581, 579, 603, 261, 248, 264, 246, 245, 525, 521, 520, 528, 518, 502, 503, 526, 507, 523, 540, 600, 599, 598, 543, 877, 1061, 857, 1060, 833, 880, 862, 272, 302, 243, 306, 271, 301, 244, 1012, 1014, 452, 425, 550, 549, 548, 551, 990, 981, 980, 1022, 461, 315, 563, 597, 537, 561, 570, 571, 1005, 322, 347, 349, 962, 988, 985, 994, 949, 948, 997, 996, 282, 283, 284, 285, 255, 234, 362, 527, 530, 515, 938, 534, 532, 314, 574, 225, 991, 375, 328, 391, 382, 436, 454, 414, 396, 388, 412, 409, 394, 446, 420, 453, 407, 397, 399, 437, 426, 444, 447, 418, 403, 433, 430, 419, 428, 380, 417, 401, 411, 386, 432, 379, 422, 398, 400, 431, 402, 424, 423, 429, 221, 860, 434, 1064, 334, 337, 723, 1067, 555, 731, 295, 487, 298, 1035, 413, 845, 455, 1001, 339, 928, 1086, 1082, 1083, 516, 1071, 230, 824, 1043, 356, 383, 494, 892, 1007, 1028, 1027, 343, 509, 947, 992, 859, 937, 883, 851, 848, 495, 843, 318, 319, 875, 448, 371, 372, 227, 1040, 929, 557, 960, 968, 613, 959, 958, 961, 957, 993, 223, 956, 955, 984, 977, 252, 303, 253, 387, 389, 969, 870, 1093, 1092, 514, 241, 933, 844, 1090, 1089, 1088, 1087, 1013, 1011, 1020, 442, 441, 439, 863, 501, 866, 1085, 1122, 1096, 1099, 602, 1137, 1136, 1134, 1129, 1128, 1127, 1126, 1124, 1119, 1116, 1114, 1112, 1111, 1110, 1108, 1107, 1105, 1103, 1101, 1063, 1097, 445, 1102, 964, 882, 1004, 232, 335, 890, 855, 854, 950, 1034, 281, 256, 250, 1155, 1156, 1157, 1161, 1162, 1163, 1166, 1176, 1175, 1185, 1184, 1183, 1182, 1181, 1180, 1179, 1177, 1077, 1173, 1174, 1160, 1158, 1170, 1074, 536, 1131, 1148, 998, 1094, 1095, 1188, 1207, 1211, 1212, 1213, 1214, 1218, 1189, 1192, 1195, 1198, 1200, 1201, 1199, 1228, 1224, 1226, 1144, 1225, 1146, 1109, 1209, 1132, 1229, 1143, 1150, 1133, 1135, 1106, 1164, 1104, 1186, 1142, 1113, 1230, 1231, 1149, 946, 1215, 1221, 1217, 1222, 1220, 529, 1049, 1172, 1169, 370, 222, 1046, 1219, 1147, 1145, 1232, 1281, 1285, 1238, 1288, 1289, 1247, 1293, 1297, 1299, 1300, 1301, 1303, 1304, 1305, 1306, 1262, 1264, 1265, 1266, 1268, 1269, 1307, 1308, 1271, 1272, 1274, 1275, 1276, 1309, 1263, 1314, 1315, 1317, 1319, 1072, 1167, 1310, 1292, 1291, 1287, 1284, 1318, 517, 987, 1321, 449, 450, 1330, 1335, 1336, 1337, 1332, 1334, 1333, 470, 1331, 578, 1037, 475, 346, 1141, 462, 805, 978, 1130, 1384, 1387, 1388, 1395, 1398, 1399, 1400, 1401, 1407, 1408, 1412, 1413, 1415, 1416, 1417, 1418, 1419, 1421, 1423, 1425, 1426, 1427, 1428, 1429, 1431, 1432, 1433, 1435, 1436, 1437, 1438, 1439, 1440, 1441, 1442, 1443, 1444, 1445, 1446, 1447, 1448, 1459, 1452, 1458, 1457, 1454, 1451, 1422, 1404, 1402, 1397, 1391, 1420, 1194, 1081, 1410, 1409, 1411, 1178, 826, 1405, 1196, 1462, 1461, 1460, 575, 1386, 1472, 1471, 1475, 1473, 1140, 813, 1392, 1477, 1479, 887, 1480, 1076, 896, 986, 479, 456, 1241, 1024, 1478, 1484, 1481, 1482, 1483, 1485, 1486, 1487, 1488, 1489, 1450, 381, 1312, 338, 944, 1152, 473, 1491, 1492, 1496, 1497, 1498, 1499, 1500, 1501, 1502, 1505, 1506, 1507, 1503, 936, 1511, 1512, 1514, 1515, 489, 850, 1283, 1513, 1518, 1282, 1338, 858, 404, 1519, 1520, 1521, 1524, 1531, 1532, 1534, 1536, 1538, 1523, 1529, 1530, 1525, 1526, 1527, 1528, 1313, 416, 1540, 477, 1522, 1396, 1029, 1091, 720, 458, 735, 1009, 497, 1541, 1208, 925, 1080, 1539, 1424, 839, 975, 1543, 1493, 1544, 1545, 1547, 1548, 1504, 1550, 1551, 1553, 1554, 1555, 1556, 1557, 1558, 1560, 1561, 1562, 1565, 1115, 327, 288, 1568, 1069, 1569, 1570, 1571, 1572, 1517, 1316, 1573, 533, 1294, 1574, 226, 1066, 1575, 1015, 1577, 228, 970, 1047, 340, 1490, 229, 1455, 558, 1223, 1476, 330, 1566, 1390, 1068, 1197, 1403, 1537, 719, 1552, 336, 1621, 1622, 1623, 1624, 1625, 1626, 1627, 1628, 1629, 1630, 1631, 1632, 1633, 1634, 1635, 1636, 1637, 1639, 1640, 1642, 1646, 1647, 1648, 1649, 1651, 1652, 1653, 1654, 1655, 1656, 1657, 1658, 1661, 1662, 1663, 1650, 1385, 1664, 1290, 1008, 878, 1564, 1682, 1692, 1697, 1698, 1693, 1683, 1691, 1688, 1689, 1690, 1036, 1474, 1193, 1659, 1685, 1684, 1695, 1696, 1707, 1708, 1711, 1710, 1470, 1227, 952, 812, 357, 273, 1073, 1298, 1302, 1430, 1078, 728, 508, 1206, 1714, 1715, 1716, 1718, 1719, 1720, 1717, 1722, 1723, 1641, 973, 834, 1638, 1311, 1694, 1725, 1726, 1727, 1724, 1016, 1644, 1645, 832, 1295, 825, 1729, 1533, 1686, 1123, 1389, 1406, 1205, 715, 1508, 1509, 1495, 342, 466, 1139, 1100, 1713, 935, 595, 471, 1730, 1731, 1732, 1733, 1734, 1735, 1736, 1737, 1738, 1739, 884, 1168, 481, 1153, 1154, 1125, 1210, 274, 333, 23, 1709, 1660, 1204, 1414, 1054, 1191, 308, 740, 1151, 1394, 1202, 1393, 1567, 1203, 934, 427, 506, 1118, 374, 1117, 861, 594, 1171, 535, 554, 1449, 1062, 1434, 1286, 1643, 1563, 1740, 1741, 1742, 1743, 1751, 1756, 1757, 1758, 1759, 1760, 1761, 1762, 1763, 1764, 1765, 1766, 1767, 1768, 1769, 1770, 1771, 1772, 1773, 1774, 1775, 1776, 1777, 1750, 1749, 1748, 1747, 1746, 1745, 1535, 1744, 1098, 451, 435, 879, 384, 440, 1456, 886, 872, 871, 1778, 326, 739, 1065, 1006, 1296, 1687, 1052, 457, 730, 1752, 1753, 1755, 1754, 1084, 421, 463, 1728, 1559, 286, 1038, 940, 1159, 744, 350, 1165, 885, 1045, 1044, 1079, 891, 1780, 1781, 1782, 1783, 1784, 1785, 1786, 1787, 1788, 1542, 1779, 727, 406, 1510, 1070, 465, 724, 1138, 601, 1546, 580, 512, 1721, 1018, 1121, 1120, 1216, 1453)
AND EXISTS(SELECT 1 FROM `psgh_category_product` cp
JOIN `psgh_category_group` cg ON (cp.id_category = cg.id_category AND cg.`id_group` =1)
WHERE cp.`id_product` = p.`id_product`)
70.230 ms 2512458 /classes/Product.php:3393
2
SELECT SQL_NO_CACHE c.`name`, cl.`id_lang`, IF(cl.`id_lang` IS NULL, c.`value`, cl.`value`) AS value, c.id_shop_group, c.id_shop
FROM `psgh_configuration` c
LEFT JOIN `psgh_configuration_lang` cl ON (c.`id_configuration` = cl.`id_configuration`)
5.599 ms 1166 /classes/Configuration.php:180
15
SELECT SQL_NO_CACHE h.`name` as hook, m.`id_module`, h.`id_hook`, m.`name` as module
FROM `psgh_module` m
INNER JOIN psgh_module_shop module_shop
ON (module_shop.id_module = m.id_module AND module_shop.id_shop = 1 AND module_shop.enable_device & 1)
INNER JOIN `psgh_hook_module` `hm` ON hm.`id_module` = m.`id_module`
INNER JOIN `psgh_hook` `h` ON hm.`id_hook` = h.`id_hook`
LEFT JOIN `psgh_module_group` `mg` ON mg.`id_module` = m.`id_module`
WHERE (h.`name` != "paymentOptions") AND (hm.`id_shop` = 1) AND (mg.id_shop = 1 AND  mg.`id_group` IN (1))
GROUP BY hm.id_hook, hm.id_module
ORDER BY hm.`position`
4.348 ms 222 Yes Yes /classes/Hook.php:1233
5456
SELECT SQL_NO_CACHE h.`name` as hook, m.`id_module`, h.`id_hook`, m.`name` as module
FROM `psgh_module` m
INNER JOIN psgh_module_shop module_shop
ON (module_shop.id_module = m.id_module AND module_shop.id_shop = 1 AND module_shop.enable_device & 1)
INNER JOIN `psgh_hook_module` `hm` ON hm.`id_module` = m.`id_module`
INNER JOIN `psgh_hook` `h` ON hm.`id_hook` = h.`id_hook`
LEFT JOIN `psgh_module_group` `mg` ON mg.`id_module` = m.`id_module`
WHERE (h.`name` != "paymentOptions") AND (hm.`id_shop` = 1) AND (mg.id_shop = 1 AND  mg.`id_group` IN (1))
GROUP BY hm.id_hook, hm.id_module
ORDER BY hm.`position`
4.145 ms 222 Yes Yes /classes/Hook.php:1233
87
SELECT SQL_NO_CACHE `id_module` FROM `psgh_module` WHERE `name` = "ps_featuredproducts" LIMIT 1
4.086 ms 1 /classes/module/Module.php:2636
50
SELECT SQL_NO_CACHE `id_country`
FROM `psgh_country`
WHERE `iso_code` = 'US' AND active = 1 LIMIT 1
4.084 ms 1 /classes/Country.php:194
7481
SELECT SQL_NO_CACHE p.*, product_shop.*, stock.out_of_stock, IFNULL(stock.quantity, 0) AS quantity, pl.`description`, pl.`description_short`, pl.`available_now`,
pl.`available_later`, pl.`link_rewrite`, pl.`meta_description`, pl.`meta_keywords`, pl.`meta_title`, pl.`name`, image_shop.`id_image` id_image,
il.`legend` as legend, m.`name` AS manufacturer_name, cl.`name` AS category_default,
DATEDIFF(product_shop.`date_add`, DATE_SUB("2024-12-04 00:00:00",
INTERVAL 30 DAY)) > 0 AS new, product_shop.price AS orderprice
FROM `psgh_category_product` cp
LEFT JOIN `psgh_product` p
ON p.`id_product` = cp.`id_product`
INNER JOIN psgh_product_shop product_shop
ON (product_shop.id_product = p.id_product AND product_shop.id_shop = 1)
LEFT JOIN psgh_stock_available stock
ON (stock.id_product = `p`.id_product AND stock.id_product_attribute = 0 AND stock.id_shop = 1  AND stock.id_shop_group = 0  )
LEFT JOIN `psgh_category_lang` cl
ON (product_shop.`id_category_default` = cl.`id_category`
AND cl.`id_lang` = 2 AND cl.id_shop = 1 )
LEFT JOIN `psgh_product_lang` pl
ON (p.`id_product` = pl.`id_product`
AND pl.`id_lang` = 2 AND pl.id_shop = 1 )
LEFT JOIN `psgh_image_shop` image_shop
ON (image_shop.`id_product` = p.`id_product` AND image_shop.cover=1 AND image_shop.id_shop=1)
LEFT JOIN `psgh_image_lang` il
ON (image_shop.`id_image` = il.`id_image`
AND il.`id_lang` = 2)
LEFT JOIN `psgh_manufacturer` m
ON m.`id_manufacturer` = p.`id_manufacturer`
WHERE product_shop.`id_shop` = 1
AND cp.`id_category` = 62 AND product_shop.`active` = 1 AND product_shop.`visibility` IN ("both", "catalog") ORDER BY p.`date_add` DESC
LIMIT 0,6
3.989 ms 100 Yes /classes/Category.php:1062
7425
SELECT SQL_NO_CACHE p.*, product_shop.*, stock.out_of_stock, IFNULL(stock.quantity, 0) AS quantity, pl.`description`, pl.`description_short`, pl.`available_now`,
pl.`available_later`, pl.`link_rewrite`, pl.`meta_description`, pl.`meta_keywords`, pl.`meta_title`, pl.`name`, image_shop.`id_image` id_image,
il.`legend` as legend, m.`name` AS manufacturer_name, cl.`name` AS category_default,
DATEDIFF(product_shop.`date_add`, DATE_SUB("2024-12-04 00:00:00",
INTERVAL 30 DAY)) > 0 AS new, product_shop.price AS orderprice
FROM `psgh_category_product` cp
LEFT JOIN `psgh_product` p
ON p.`id_product` = cp.`id_product`
INNER JOIN psgh_product_shop product_shop
ON (product_shop.id_product = p.id_product AND product_shop.id_shop = 1)
LEFT JOIN psgh_stock_available stock
ON (stock.id_product = `p`.id_product AND stock.id_product_attribute = 0 AND stock.id_shop = 1  AND stock.id_shop_group = 0  )
LEFT JOIN `psgh_category_lang` cl
ON (product_shop.`id_category_default` = cl.`id_category`
AND cl.`id_lang` = 2 AND cl.id_shop = 1 )
LEFT JOIN `psgh_product_lang` pl
ON (p.`id_product` = pl.`id_product`
AND pl.`id_lang` = 2 AND pl.id_shop = 1 )
LEFT JOIN `psgh_image_shop` image_shop
ON (image_shop.`id_product` = p.`id_product` AND image_shop.cover=1 AND image_shop.id_shop=1)
LEFT JOIN `psgh_image_lang` il
ON (image_shop.`id_image` = il.`id_image`
AND il.`id_lang` = 2)
LEFT JOIN `psgh_manufacturer` m
ON m.`id_manufacturer` = p.`id_manufacturer`
WHERE product_shop.`id_shop` = 1
AND cp.`id_category` = 57 AND product_shop.`active` = 1 AND product_shop.`visibility` IN ("both", "catalog") ORDER BY RAND() LIMIT 6
3.860 ms 114 Yes /classes/Category.php:1062
106
SELECT SQL_NO_CACHE h.id_hook, h.name as h_name, title, description, h.position, hm.position as hm_position, m.id_module, m.name, m.active
FROM `psgh_hook_module` hm
STRAIGHT_JOIN `psgh_hook` h ON (h.id_hook = hm.id_hook AND hm.id_shop = 1)
STRAIGHT_JOIN `psgh_module` as m ON (m.id_module = hm.id_module)
ORDER BY hm.position
3.589 ms 528 /classes/Hook.php:456
105
SELECT SQL_NO_CACHE `id_hook`, `name`
FROM `psgh_hook`
UNION
SELECT `id_hook`, ha.`alias` as name
FROM `psgh_hook_alias` ha
INNER JOIN `psgh_hook` h ON ha.name = h.name
3.531 ms 0 /classes/Hook.php:1292
190
SELECT SQL_NO_CACHE `id_product`, `id_product_attribute`
FROM `psgh_specific_price`
WHERE	`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND
`from_quantity` = 1 AND
`reduction` > 0
AND `id_customer` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
3.450 ms 1254 /classes/SpecificPrice.php:715
110
SELECT SQL_NO_CACHE `reduction`
FROM `psgh_product_group_reduction_cache`
WHERE `id_product` = 23 AND `id_group` = 1 LIMIT 1
2.236 ms 0 /classes/GroupReduction.php:156
92
SELECT SQL_NO_CACHE p.*, product_shop.*, stock.out_of_stock, IFNULL(stock.quantity, 0) AS quantity, pl.`description`, pl.`description_short`, pl.`available_now`,
pl.`available_later`, pl.`link_rewrite`, pl.`meta_description`, pl.`meta_keywords`, pl.`meta_title`, pl.`name`, image_shop.`id_image` id_image,
il.`legend` as legend, m.`name` AS manufacturer_name, cl.`name` AS category_default,
DATEDIFF(product_shop.`date_add`, DATE_SUB("2024-12-04 00:00:00",
INTERVAL 30 DAY)) > 0 AS new, product_shop.price AS orderprice
FROM `psgh_category_product` cp
LEFT JOIN `psgh_product` p
ON p.`id_product` = cp.`id_product`
INNER JOIN psgh_product_shop product_shop
ON (product_shop.id_product = p.id_product AND product_shop.id_shop = 1)
LEFT JOIN psgh_stock_available stock
ON (stock.id_product = `p`.id_product AND stock.id_product_attribute = 0 AND stock.id_shop = 1  AND stock.id_shop_group = 0  )
LEFT JOIN `psgh_category_lang` cl
ON (product_shop.`id_category_default` = cl.`id_category`
AND cl.`id_lang` = 2 AND cl.id_shop = 1 )
LEFT JOIN `psgh_product_lang` pl
ON (p.`id_product` = pl.`id_product`
AND pl.`id_lang` = 2 AND pl.id_shop = 1 )
LEFT JOIN `psgh_image_shop` image_shop
ON (image_shop.`id_product` = p.`id_product` AND image_shop.cover=1 AND image_shop.id_shop=1)
LEFT JOIN `psgh_image_lang` il
ON (image_shop.`id_image` = il.`id_image`
AND il.`id_lang` = 2)
LEFT JOIN `psgh_manufacturer` m
ON m.`id_manufacturer` = p.`id_manufacturer`
WHERE product_shop.`id_shop` = 1
AND cp.`id_category` = 2 AND product_shop.`active` = 1 AND product_shop.`visibility` IN ("both", "catalog") ORDER BY cp.`position` ASC
LIMIT 0,8
1.946 ms 18 /classes/Category.php:1062
1061
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 372 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
1.785 ms 1 Yes /classes/SpecificPrice.php:576
14
SELECT SQL_NO_CACHE lower(name) as name
FROM `psgh_hook` h
WHERE (h.active = 1)
1.682 ms 1052 /classes/Hook.php:1332
7536
SELECT SQL_NO_CACHE p.*, product_shop.*, stock.out_of_stock, IFNULL(stock.quantity, 0) AS quantity, pl.`description`, pl.`description_short`, pl.`available_now`,
pl.`available_later`, pl.`link_rewrite`, pl.`meta_description`, pl.`meta_keywords`, pl.`meta_title`, pl.`name`, image_shop.`id_image` id_image,
il.`legend` as legend, m.`name` AS manufacturer_name, cl.`name` AS category_default,
DATEDIFF(product_shop.`date_add`, DATE_SUB("2024-12-04 00:00:00",
INTERVAL 30 DAY)) > 0 AS new, product_shop.price AS orderprice
FROM `psgh_category_product` cp
LEFT JOIN `psgh_product` p
ON p.`id_product` = cp.`id_product`
INNER JOIN psgh_product_shop product_shop
ON (product_shop.id_product = p.id_product AND product_shop.id_shop = 1)
LEFT JOIN psgh_stock_available stock
ON (stock.id_product = `p`.id_product AND stock.id_product_attribute = 0 AND stock.id_shop = 1  AND stock.id_shop_group = 0  )
LEFT JOIN `psgh_category_lang` cl
ON (product_shop.`id_category_default` = cl.`id_category`
AND cl.`id_lang` = 2 AND cl.id_shop = 1 )
LEFT JOIN `psgh_product_lang` pl
ON (p.`id_product` = pl.`id_product`
AND pl.`id_lang` = 2 AND pl.id_shop = 1 )
LEFT JOIN `psgh_image_shop` image_shop
ON (image_shop.`id_product` = p.`id_product` AND image_shop.cover=1 AND image_shop.id_shop=1)
LEFT JOIN `psgh_image_lang` il
ON (image_shop.`id_image` = il.`id_image`
AND il.`id_lang` = 2)
LEFT JOIN `psgh_manufacturer` m
ON m.`id_manufacturer` = p.`id_manufacturer`
WHERE product_shop.`id_shop` = 1
AND cp.`id_category` = 60 AND product_shop.`active` = 1 AND product_shop.`visibility` IN ("both", "catalog") ORDER BY RAND() LIMIT 6
1.594 ms 23 Yes /classes/Category.php:1062
5074
SELECT SQL_NO_CACHE `priority`, `id_specific_price_priority`
FROM `psgh_specific_price_priority`
WHERE `id_product` = 1293
ORDER BY `id_specific_price_priority` DESC LIMIT 1
1.448 ms 0 /classes/SpecificPrice.php:259
5455
SELECT SQL_NO_CACHE lower(name) as name
FROM `psgh_hook` h
WHERE (h.active = 1)
1.441 ms 1052 /classes/Hook.php:1332
4608
SELECT SQL_NO_CACHE product_shop.`price`, product_shop.`ecotax`,
0 as id_product_attribute
FROM `psgh_product` p
INNER JOIN `psgh_product_shop` `product_shop` ON (product_shop.id_product=p.id_product AND product_shop.id_shop = 1)
WHERE (p.`id_product` = 1179)
1.336 ms 1 /classes/Product.php:3860
4095
SELECT SQL_NO_CACHE 1 FROM `psgh_specific_price` WHERE id_product = 1094 LIMIT 1
1.294 ms 1 /classes/SpecificPrice.php:435
2489
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 720 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
1.281 ms 1 Yes /classes/SpecificPrice.php:576
508
SELECT SQL_NO_CACHE `priority`, `id_specific_price_priority`
FROM `psgh_specific_price_priority`
WHERE `id_product` = 274
ORDER BY `id_specific_price_priority` DESC LIMIT 1
1.259 ms 1 /classes/SpecificPrice.php:259
2981
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 879 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
1.250 ms 2 Yes /classes/SpecificPrice.php:576
5393
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 1401 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
1.231 ms 1 Yes /classes/SpecificPrice.php:576
4613
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 1180 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
1.218 ms 2 Yes /classes/SpecificPrice.php:576
171
SELECT SQL_NO_CACHE p.*,
ps.*,
pl.*,
sa.out_of_stock,
IFNULL(sa.quantity, 0) as quantity,
(DATEDIFF(
p.`date_add`,
DATE_SUB(
'2024-12-04 00:00:00',
INTERVAL 30 DAY
)
) > 0) as new
FROM psgh_product p
LEFT JOIN psgh_product_lang pl
ON pl.id_product = p.id_product
AND pl.id_shop = 1
AND pl.id_lang = 2
LEFT JOIN psgh_stock_available sa   ON sa.id_product = p.id_product
AND sa.id_product_attribute = 0
AND sa.id_shop = 1 LEFT JOIN psgh_product_shop ps
ON ps.id_product = p.id_product
AND ps.id_shop = 1
WHERE p.id_product IN (806)
1.194 ms 1 /classes/ProductAssembler.php:64
2615
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 741 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
1.164 ms 1 Yes /classes/SpecificPrice.php:576
2603
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 739 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
1.155 ms 1 Yes /classes/SpecificPrice.php:576
2609
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 740 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
1.150 ms 1 Yes /classes/SpecificPrice.php:576
2573
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 734 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
1.138 ms 1 Yes /classes/SpecificPrice.php:576
4595
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 1177 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
1.136 ms 2 Yes /classes/SpecificPrice.php:576
24
SELECT SQL_NO_CACHE `id_hook`, `name` FROM `psgh_hook`
1.120 ms 1052 /classes/Hook.php:1292
2627
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 744 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
1.119 ms 1 Yes /classes/SpecificPrice.php:576
4781
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 1210 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
1.114 ms 2 Yes /classes/SpecificPrice.php:576
7272
SELECT SQL_NO_CACHE p.*,
ps.*,
pl.*,
sa.out_of_stock,
IFNULL(sa.quantity, 0) as quantity,
(DATEDIFF(
p.`date_add`,
DATE_SUB(
'2024-12-04 00:00:00',
INTERVAL 30 DAY
)
) > 0) as new
FROM psgh_product p
LEFT JOIN psgh_product_lang pl
ON pl.id_product = p.id_product
AND pl.id_shop = 1
AND pl.id_lang = 2
LEFT JOIN psgh_stock_available sa   ON sa.id_product = p.id_product
AND sa.id_product_attribute = 0
AND sa.id_shop = 1 LEFT JOIN psgh_product_shop ps
ON ps.id_product = p.id_product
AND ps.id_shop = 1
WHERE p.id_product IN (421)
1.106 ms 1 /classes/ProductAssembler.php:64
2579
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 735 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
1.080 ms 1 Yes /classes/SpecificPrice.php:576
2621
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 743 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
1.069 ms 1 Yes /classes/SpecificPrice.php:576
123
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 806 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
1.060 ms 2 Yes /classes/SpecificPrice.php:576
2645
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 823 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
1.060 ms 1 Yes /classes/SpecificPrice.php:576
4967
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 1268 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
1.054 ms 1 Yes /classes/SpecificPrice.php:576
4601
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 1178 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
1.054 ms 2 Yes /classes/SpecificPrice.php:576
26
SELECT SQL_NO_CACHE m.`id_module`, m.`name`, ms.`id_module`as `mshop`
FROM `psgh_module` m
LEFT JOIN `psgh_module_shop` ms
ON m.`id_module` = ms.`id_module`
AND ms.`id_shop` = 1
1.051 ms 82 /classes/module/Module.php:345
2591
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 737 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
1.048 ms 1 Yes /classes/SpecificPrice.php:576
5441
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 1409 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
1.043 ms 2 Yes /classes/SpecificPrice.php:576
4961
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 1266 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
1.041 ms 1 Yes /classes/SpecificPrice.php:576
17
SELECT SQL_NO_CACHE m.page, ml.url_rewrite, ml.id_lang
FROM `psgh_meta` m
LEFT JOIN `psgh_meta_lang` ml ON (m.id_meta = ml.id_meta AND ml.id_shop = 1 )
ORDER BY LENGTH(ml.url_rewrite) DESC
1.037 ms 48 Yes /classes/Dispatcher.php:654
2633
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 805 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
1.037 ms 1 Yes /classes/SpecificPrice.php:576
2597
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 738 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
1.035 ms 1 Yes /classes/SpecificPrice.php:576
4619
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 1181 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
1.034 ms 2 Yes /classes/SpecificPrice.php:576
2417
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 599 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
1.033 ms 1 Yes /classes/SpecificPrice.php:576
2525
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 726 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
1.032 ms 1 Yes /classes/SpecificPrice.php:576
4955
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 1265 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
1.026 ms 1 Yes /classes/SpecificPrice.php:576
7017
SELECT SQL_NO_CACHE 1 FROM `psgh_specific_price` WHERE id_product = 1762 LIMIT 1
1.020 ms 1 /classes/SpecificPrice.php:435
4637
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 1184 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
1.016 ms 2 Yes /classes/SpecificPrice.php:576
4769
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 1208 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
1.013 ms 2 Yes /classes/SpecificPrice.php:576
4979
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 1271 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
1.001 ms 1 Yes /classes/SpecificPrice.php:576
6059
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 1529 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
0.998 ms 2 Yes /classes/SpecificPrice.php:576
5381
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 1399 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
0.996 ms 1 Yes /classes/SpecificPrice.php:576
509
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 274 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
0.993 ms 2 Yes /classes/SpecificPrice.php:576
6095
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 1535 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
0.990 ms 2 Yes /classes/SpecificPrice.php:576
4223
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 1115 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
0.988 ms 2 Yes /classes/SpecificPrice.php:576
1349
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 421 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
0.982 ms 2 Yes /classes/SpecificPrice.php:576
5387
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 1400 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
0.982 ms 1 Yes /classes/SpecificPrice.php:576
5596
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 1433 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
0.980 ms 1 Yes /classes/SpecificPrice.php:576
1529
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 451 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
0.980 ms 2 Yes /classes/SpecificPrice.php:576
173
SELECT SQL_NO_CACHE p.*,
ps.*,
pl.*,
sa.out_of_stock,
IFNULL(sa.quantity, 0) as quantity,
(DATEDIFF(
p.`date_add`,
DATE_SUB(
'2024-12-04 00:00:00',
INTERVAL 30 DAY
)
) > 0) as new
FROM psgh_product p
LEFT JOIN psgh_product_lang pl
ON pl.id_product = p.id_product
AND pl.id_shop = 1
AND pl.id_lang = 2
LEFT JOIN psgh_stock_available sa   ON sa.id_product = p.id_product
AND sa.id_product_attribute = 0
AND sa.id_shop = 1 LEFT JOIN psgh_product_shop ps
ON ps.id_product = p.id_product
AND ps.id_shop = 1
WHERE p.id_product IN (813)
0.979 ms 1 /classes/ProductAssembler.php:64
797
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 327 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
0.979 ms 2 Yes /classes/SpecificPrice.php:576
4919
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 1238 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
0.979 ms 1 Yes /classes/SpecificPrice.php:576
194
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 222 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
0.978 ms 1 Yes /classes/SpecificPrice.php:576
5417
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 1405 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
0.975 ms 1 Yes /classes/SpecificPrice.php:576
5903
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 1501 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
0.973 ms 1 Yes /classes/SpecificPrice.php:576
166
SELECT SQL_NO_CACHE p.*,
ps.*,
pl.*,
sa.out_of_stock,
IFNULL(sa.quantity, 0) as quantity,
(DATEDIFF(
p.`date_add`,
DATE_SUB(
'2024-12-04 00:00:00',
INTERVAL 30 DAY
)
) > 0) as new
FROM psgh_product p
LEFT JOIN psgh_product_lang pl
ON pl.id_product = p.id_product
AND pl.id_shop = 1
AND pl.id_lang = 2
LEFT JOIN psgh_stock_available sa   ON sa.id_product = p.id_product
AND sa.id_product_attribute = 0
AND sa.id_shop = 1 LEFT JOIN psgh_product_shop ps
ON ps.id_product = p.id_product
AND ps.id_shop = 1
WHERE p.id_product IN (23)
0.972 ms 1 /classes/ProductAssembler.php:64
2771
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 844 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
0.971 ms 1 Yes /classes/SpecificPrice.php:576
4811
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 1215 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
0.971 ms 1 Yes /classes/SpecificPrice.php:576
5608
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 1435 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
0.971 ms 1 Yes /classes/SpecificPrice.php:576
2513
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 724 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
0.969 ms 1 Yes /classes/SpecificPrice.php:576
6041
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 1526 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
0.966 ms 2 Yes /classes/SpecificPrice.php:576
4937
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 1262 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
0.965 ms 1 Yes /classes/SpecificPrice.php:576
6035
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 1525 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
0.965 ms 2 Yes /classes/SpecificPrice.php:576
1133
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 384 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
0.956 ms 2 Yes /classes/SpecificPrice.php:576
5403
SELECT SQL_NO_CACHE 1 FROM `psgh_specific_price` WHERE id_product = 1403 LIMIT 1
0.955 ms 1 /classes/SpecificPrice.php:435
5405
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 1403 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` > 1, `from_quantity`, 0) <= 1 ORDER BY `id_product_attribute` DESC, `id_cart` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC, `to` DESC, `from` DESC LIMIT 1
0.955 ms 1 Yes /classes/SpecificPrice.php:576
4841
SELECT SQL_NO_CACHE *, ( IF (`id_shop` = 1, 2, 0) +  IF (`id_country` = 8, 4, 0) +  IF (`id_currency` = 2, 8, 0) +  IF (`id_group` = 1, 16, 0) +  IF (`id_customer` = 0, 32, 0)) AS `score`
FROM `psgh_specific_price`
WHERE
`id_shop` IN (0, 1) AND
`id_currency` IN (0, 2) AND
`id_country` IN (0, 8) AND
`id_group` IN (0, 1) AND `id_product` = 1220 AND `id_customer` = 0 AND `id_product_attribute` = 0 AND `id_cart` = 0  AND (`from` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' >= `from`) AND (`to` = '0000-00-00 00:00:00' OR '2024-12-04 00:00:00' <= `to`)
AND IF(`from_quantity` >