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