lay so ban ghi select count(*) from `tbsanpham` sp left join `tbuser` us on sp.user_id = us.user_id where `sanpham_trangthai` = 1 and sanpham_id in(2601,2549,2541,2542,2543,2544,2545,2546,2729,3127,2597,2598,2599,2600,3015,3170,3171,3172,2659,2660,3128,3129,2663,2664,3751,2733,3189,2764,2765,2767,3190,2812,2815,2825,2830,2831,2833,3166,3330,2852,3187,3188,3186,3238,3199,3261,3262,3263,3264,3254,2963,2983,3227,3037,2998,2999,3206,3198,3005,3006,3007,3009,3010,3011,3012,3013,3014,3036,3038,3043,3049,3050,3051,3052,3053,3054,3065,3077,3197,3207,3146,3149,3158,3150,3317,3346,3347,3348,3358,3412,3413,3414,3415,3416,3417,3431,3432,3433,3434,3430,3448,3451,3452,3453,3454,3795,3798,3497,3498,3499,3640,3752,3753,3754,3755,3756,3757,3770,3771,3839,3774,3775,3776,3789,3840,3867,3868,3869,3876,3917,3932,3958,3959,3960,3966,3967,3968,3969,3972,3976,3977,3978,4002,4005,4006,4007) and FIND_IN_SET(1525, sanpham_thuoctinh) and FIND_IN_SET(40.000.000, sanpham_thuoctinh) order by sanpham_thutu asc,sanpham_id desc You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.000, sanpham_thuoctinh) order by sanpham_thutu asc,sanpham_id desc' at line 1