Que tal superdober
Prueba con:
Código mysql:
Ver originalSELECT tpv.nro_estacion
,numero
,fecha_entrega
,id_expositor
,te.id_punto_venta
on te.id_punto_venta
=tpv.id_punto_venta
where (te.id_punto_venta
= '$id_puntodeventa_buscar' and tpv.nro_estacion
LIKE '%$puntodeventa_a_buscar%' and te.numero
LIKE '%$numexpositores_a_buscar%') or t_expositores.fecha_entrega = '$fechaentrega_a_buscar'
Para consultas tan largas, es recomendable hacer uso de inner join para relacionar las tablas.
Ademas, de utilizar alias en las tablas, ya que los nombres de las tablas son muy largos y tienen a generar errores
cuando son antepuestos en los campos.
Un saludo.