Unknown column 'pt' in 'where clause'
SELECT pr.productID as productID, pr.`name_ru` AS name, pr.Price, pr.slug, pr.brief_description_ru, ABS(pr.Price - rel.Price) as absPrice FROM SC_products AS pr JOIN SC_products AS rel ON (rel.`productID` = pr.`productID`) WHERE pr.`categoryID`=577 AND pr.enabled = 1 AND pr.productID <> 2911-pt-024-red-matte AND (pr.in_stock && 1 = 1) AND pr.productID IN(754,756,758,761,776,777,800,801,807,810,911,913,926,956,967,968,969,975,979,993,1002,1010,1011,1165,1166,1167,1168,1177,1178,1180,1217,1218,1220,1328,1354,1355,1393,1525,1527,1592,1593,1594,1595,1679,2101,2112,2114,2115,2118,2119,2125,2126,2128,2149,2204,2209,2238,2347,2402,2403,2405,2412,2418,2419,2420,2422,2429,2434,2436,2440,2441,2442,2444,2445,2447,2448,2449,2459,2472,2476,2517,2619,2662,2673,2678,2681,2682,2683,2684,2691,2693,2695,2702,2703,2704,2705,2706,2707,2708,2709,2713,2724,2725,2730,2734,2749,2767,2777,2785,2786,2788,2812,2816,2823,2829,2830,2831,2832,2836,2837,2838,2841,2842,2843,2844,2845,2850,2859,2860,2868,2906,2907,2908,2910,2911,2912,2914,2915,2916,2917,2918,2926,2928,2929,2930,2933,2937,2938,2941,2942,2943,2946,2947,2948,2949,2954,2955,2956,2957,2958,2959,2965,2966,2970,2994,2996,2998,2999,3000,3001,3002,3003,3004,3005,3006,3007,3008,3009,3010,3011,3012,3013,3014,3015,3016,3017,3028,3031,3033,3035,3036,3037,3038,3040,3047,3048,3049,3053,3054,3055,3056,3057,3058,3059,3060,3061,3062,3063,3064,3069,3070,3071,3085,3089,3090,3091,3092,3097,3099,3100,3106,3107,3124,3132,3138,3141,3142,3143,3145,3152,3153,3154,3159,3161,3162,3166,3167,3168,3171,3172,3173,3176,3177,3178,3179,3181,3183,3184,3188,3189,3207,3208,3216,3221,3224,3225,3226,3227,3228,3229,3230,3231,3232,3233,3234,3250,3251,3252,3253,3254,3255,3257,3258,3263,3265,3267,3277,3278,3279,3280,3293,3294,3299,3300,3303,3304,3315,3330,3331,3332,3336,3338,3339,3347,3348,3350,3352,3353,3354,3355,3356,3358,3359,3360,3363,3364,3366,3372,3375,3379,3380,3381,3382,3383,3384,3385,3386,3387,3388,3389,3390,3391,3393,3394,3395,3397,3398,3399,3400,3401,3402,3403,3404,3405,3406,3407,3409,3412,3413,3414,3415,3416,3417,3418,3419,3420,3421,3422,3423,3424,3425,3426,3427,3429,3430,3431,3432,3436,3437,3438,3439,3440,3441,3442,3443,3444,3445,3446,3447,3448,3449,3450,3451,3452,3454,3459,3460,3466,3469,3470,3471) ORDER BY absPrice ASC LIMIT 12