Unknown column 'osbag081' 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`=580 AND pr.enabled = 1 AND pr.productID <> 3251-osbag081-tan AND (pr.in_stock && 1 = 1) AND pr.productID IN(754,756,758,761,776,777,800,801,807,911,913,926,956,967,968,969,975,979,993,1002,1010,1011,1354,1355,1393,1525,1527,1592,1593,1594,1595,1679,2347,2402,2403,2405,2412,2418,2419,2420,2422,2429,2434,2436,2440,2441,2442,2444,2445,2447,2448,2449,2459,2472,2619,2662,2673,2678,2681,2682,2683,2684,2691,2693,2695,2702,2703,2704,2705,2706,2707,2708,2709,2724,2730,2767,2777,2785,2788,2816,2823,2831,2832,2836,2837,2838,2841,2842,2843,2844,2845,2859,2860,2868,2906,2907,2908,2910,2911,2912,2914,2915,2916,2917,2918,2928,2929,2933,2937,2938,2941,2942,2943,2946,2947,2948,2949,2954,2970,2994,2996,2998,2999,3000,3001,3002,3003,3004,3005,3006,3007,3008,3009,3010,3011,3012,3013,3014,3015,3016,3017,3047,3048,3049,3053,3054,3055,3056,3057,3058,3059,3060,3061,3062,3063,3064,3069,3070,3071,3085,3090,3183,3091,3092,3097,3099,3106,3107,3124,3132,3138,3152,3153,3154,3159,3162,3166,3167,3168,3171,3172,3173,3176,3177,3178,3179,3181,3184,3188,3189,3207,3208,3216,3221,3224,3225,3226,3227,3228,3229,3230,3231,3232,3233,3234,3250,3251,3252,3253,3254,3257,3258,3263,3277,3278,3279,3280,3293,3294,3299,3300,3303,3304,3315,3330,3331,3332,3347,3348,3350,3352,3353,3354,3355,3356,3358,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,3418,3419,3427,3429,3430,3431,3436,3437,3438,3439,3440,3441,3442,3443,3444,3445,3446,3447,3448,3449,3450,3451,3459,3460,2786,2850,2830,3466,3470,3471) ORDER BY absPrice ASC LIMIT 12