When the SQL query below is executed:
UPDATE shop_category SET name = \'Secolul XVI - XVIII\' AND name_eng = \'16th to 18th centuries\' WHERE category
You don't need the AND keyword. Here's the correct syntax of the UPDATE statement:
AND
UPDATE shop_category SET name = 'Secolul XVI - XVIII', name_eng = '16th to 18th centuries' WHERE category_id = 4768