Unknown column 'public' in 'where clause': SELECT * FROM reservas WHERE propiedad_fk = public and session_id = "4qs5f1m8mn56ighii437u4ean6"