Fix #49 Improperly nested quotes

This adds single quotes around the SQL to avoid improperly nested quotes rendering in meta controls.