Fix SQL syntax error on eg. 'pkg info -i foo'