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`=578 AND pr.enabled = 1 AND pr.productID <> 3250-osbag081-peanut AND (pr.in_stock && 1 = 1) AND pr.productID IN(754,756,758,761,776,777,800,801,806,807,911,913,926,956,967,968,969,975,979,993,1002,1010,1011,1354,1355,1393,1525,1527,1592,1593,1594,1595,1612,1679,2347,2392,2401,2402,2403,2404,2405,2412,2418,2419,2420,2422,2429,2434,2436,2440,2441,2442,2444,2445,2447,2448,2449,2459,2468,2470,2472,2619,2662,2673,2676,2678,2681,2682,2683,2684,2690,2691,2693,2695,2702,2703,2704,2705,2706,2707,2708,2709,2710,2724,2730,2767,2777,2783,2785,2788,2816,2823,2827,2831,2832,2834,2836,2837,2838,2841,2842,2843,2844,2845,2857,2858,2859,2860,2865,2868,2873,2906,2907,2908,2910,2911,2912,2914,2915,2916,2917,2918,2920,2921,2928,2929,2933,2937,2938,2941,2942,2943,2946,2947,2948,2949,2954,2970,2984,2985,2986,2987,2988,2989,2990,2991,2992,2993,2994,2995,2996,2997,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,3072,3085,3087,3090,3091,3092,3094,3096,3097,3099,3106,3107,3124,3132,3138,3152,3153,3154,3159,3162,3166,3167,3168,3169,3170,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,3257,3258,3263,3277,3278,3279,3280,3293,3294,3299,3300,3303,3304,3315,3327,3328,3329,3330,3331,3332,3347,3348,3349,3350,3352,3353,3354,3355,3356,3358,3360,3363,3364,3366,3367,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,3410,3411,3412,3413,3414,3415,3416,3418,3419) ORDER BY absPrice ASC LIMIT 12