[misc] Fixed invalid SQL syntax