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