Added single quotes in query formation