SQLSTATE[42000]: Syntax error or access violation: 1064 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 'ON DUPLICATE KEY UPDATE `updated_at` = NOW()' at line 3. Failing Query: "INSERT INTO `line` (`post_id`, `line_id`, `created_at`, `updated_at`) VALUES ON DUPLICATE KEY UPDATE `updated_at` = NOW() "