SELECT DISTINCT t_products.id, MN.p_id FROM t_products_cat_mn AS MN LEFT JOIN t_products ON t_products.id = MN.i_id WHERE t_products.publikovano=1 AND t_products.jazyk='cz' AND MN.publikovano = 1 AND MN.p_id IN (,,633,634,640,641,657,642,635,643,644,645,636,646,647,648,654,649,656,816,653,637,650,651,655,658,659,805,652,638,858,419,420,430,431,432,433,434,435,436,558,678,679,683,680,681,682,684,685,437,438,439,443,444,445,867,447,448,449,450,451,452,453,803,454,456,457,455,458,459,460,461,462,463,464,465,466,467,468,474,475,473,689,687,688,549,472,471,470,469,722,686,512,513,809,810,811,793,795,796,794,797,860,696,697,698,745,746,747,748,750,751,749,752,779,780,781,782,783,784,785,791,792,786,787,788,789,837,790,798,799,800,801,802,807,484,486,485,488,756,489,490,491,492,493,495,496,497,498,499,500,708,501,502,503,504,711,505,546,561,562,568,569,593,573,563,574,575,576,564,577,578,579,589,582,591,588,565,583,584,594,567,590,585,566,507,508,528,529,530,821,531,509,552,551,537,817,819,820,510,526,516,548,517,830,519,527,521,538,539,540,511,518,520,525,559,831,668,822)
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 ',633,634,640,641,657,642,635,643,644,645,636,646,647,648,654,649,656,816,653,637' at line 15