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