Database error: Invalid SQL: SELECT * FROM banners
WHERE active=1
and
format = "7"
and
( start_date is null or start_date = 0 or start_date > UNIX_TIMESTAMP(NOW()) )
and
( end_date is null or end_date = 0 or end_date < UNIX_TIMESTAMP(NOW()) )
and (
pages is null OR pages = "" OR find_in_set(0,pages)
OR find_in_set(1004,pages) OR find_in_set(1247,pages) OR find_in_set(1246,pages) OR find_in_set(1245,pages) OR find_in_set(1244,pages) OR find_in_set(1243,pages) OR find_in_set(1242,pages) OR find_in_set(1241,pages) OR find_in_set(1240,pages) OR find_in_set(1239,pages) OR find_in_set(1238,pages) OR find_in_set(1237,pages) OR find_in_set(1235,pages)
)
and (
u_group is null OR
u_group = ""
)
find_in_set(9, place) > 0
ORDER BY find_in_set(9, place) DESC, (priority+0.0001) * RAND()
LIMIT 1
MySQL Error: 1064 (You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'find_in_set(9, place) > 0
ORDER BY find_in_set(9, place) DESC)
Session halted.