Unable to query local database
SELECT bnhotels.id,bnhotels.photo1
as photo,bnhotels.title
as titlehotel,bnhotels.address
as address,polis.title
as polistitle,bnhotels_eidos.title
as eidos,bnhotels_categories.class
as class ,polis.id as polis
FROM bnhotels,polis, bnhotels_eidos,bnhotels_categories where bnhotels.polis_id=polis.id
and bnhotels.id in ()
and bnhotels.category_id = bnhotels_categories.id
and bnhotels.enabled=1
and bnhotels.book_show = 1
and bnhotels.eidos_id=bnhotels_eidos.id
and (bnhotels.booknow =1 or bnhotels.booknow =2)
and (bnhotels.enabled_start<=CURDATE() and bnhotels.enabled_end>=CURDATE())
order by Rand()