Could not execute Unknown column '$' in 'where clause'