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