Possible Duplicate:
mysql_fetch_array() expects parameter 1 to be resource, boolean given in selectЯ делаю запрос с использованием
union
, но, похоже, в нем есть какая-то ошибка, из-за которой он не работает. Может ли кто-нибудь помочь мне с этим? Ошибка такая:Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in \class.php on line 50
Код такой:
$sql3=mysql_query( "SELECT * FROM ( ('select * from notification where title_text='Global Notification' `user_id`=$frnnid and `owner_user_id`=$frnnid and `is_seen`=0 order by `time_stamp` desc') union ('select * from notification where title_text='Global Notification' and user_id=$id and owner_user_id=$frnnid and is_seen=0 order by time_stamp desc') ) notification order by Desc" );