Got error -1 from storage engine
SELECT SQL_CALC_FOUND_ROWS `products`.*, `promoted`.`iPromotedMin`, `producers`.`sName` AS `prodsName`, `producers`.`sLogoUrl` AS `prodsLogoUrl`, `products`.`TiAvailable` AS `iAvailable`, `products`.`fPrice` AS `fCatalogPrice`, `vat`.`fVatValue`, ss13_pl_calculateProductPriceForUser( NULL, `products`.`iProduct`, 1 ) AS `fPrice`, LEAST( `products`.`TiCanBuy`, ss13_pl_getProductCanBuyForUser ( NULL, `products`.`iProduct` ) ) AS `iCanBuy`, `products`.`TiVariantsCount` AS `iVariantCount`, ss13_pl_getProductVisiblePriceForUser ( NULL, `products`.`iProduct` ) AS `iVisiblePrice` FROM `ss13_pl_products` AS `products` INNER JOIN ( SELECT DISTINCT `iProduct` FROM `ss13_pl_products_pages` WHERE `iPage` IN ( 69, 109, 92, 224, 91, 93, 101, 389, 390, 393, 395, 391, 131, 136, 132, 133, 134, 135, 464, 470, 79, 228, 87, 83, 82, 90, 140, 410, 394, 397, 189, 465, 471, 141, 230, 268, 307, 345, 190, 142, 231, 269, 308, 346, 179, 143, 232, 270, 309, 347, 180, 144, 233, 271, 310, 348, 191, 383, 384, 385, 386, 387, 388, 145, 234, 272, 311, 349, 192, 146, 235, 273, 312, 350, 182, 148, 238, 275, 314, 352, 194, 149, 239, 276, 315, 353, 183, 466, 472, 150, 240, 277, 316, 354, 195, 151, 241, 278, 344, 355, 196, 152, 242, 279, 318, 356, 197, 467, 473, 153, 243, 280, 319, 357, 198, 154, 244, 281, 320, 358, 184, 155, 245, 282, 321, 359, 199, 156, 246, 283, 322, 360, 200, 157, 247, 284, 323, 361, 201, 158, 248, 285, 324, 362, 185, 159, 249, 286, 325, 363, 202, 160, 250, 287, 326, 364, 203, 161, 251, 288, 327, 365, 204, 162, 252, 289, 328, 366, 178, 468, 474, 163, 253, 290, 329, 367, 205, 164, 254, 291, 330, 368, 206, 165, 255, 292, 331, 369, 207, 469, 475, 166, 256, 293, 332, 370, 208, 167, 257, 294, 333, 371, 209, 168, 258, 295, 334, 372, 186, 169, 259, 296, 335, 373, 210, 170, 260, 297, 336, 374, 211, 171, 261, 298, 337, 375, 212, 172, 262, 299, 338, 380, 213, 173, 263, 226, 340, 377, 187, 174, 264, 300, 341, 378, 214, 406, 411, 412, 407, 175, 265, 301, 342, 379, 188, 176, 267, 302, 218, 381, 216, 177, 266, 408 ) ) AS `pp` USING( `iProduct` ) LEFT JOIN ( SELECT MIN( `iPromoted` ) `iPromotedMin`, `iProduct` FROM `ss13_pl_products_promoted` WHERE `iTimeValid` IS NULL OR `iTimeValid` >= UNIX_TIMESTAMP() GROUP BY `iProduct` ) `promoted` USING( `iProduct` ) INNER JOIN `ss13_vat` AS `vat` USING( `iVat` ) LEFT JOIN `ss13_pl_producers` AS `producers` USING( `iProducer` ) WHERE 1 AND ss13_pl_getProductVisibleForUser ( NULL, `products`.`iProduct` ) >= 1 AND `products`.`iStatus` >= 1 ORDER BY `products`.`iPosition` ASC, `products`.`sName` ASC, `products`.`iTime` ASC LIMIT 0,60