sql_art:
select ID,UID,title,author,ClassName,ClassName2,keywords,brief_short,EpisodeNo,score_douban,PremiereYear,AddTime,DigGood,hits,ReplyNum,FavoriteNum,EpisodeTotal,WordsPerEpisode,passartNum,LastArtID,LastArtHtmlURL,LastEpisode,IfCommend,IfFamous,IfAward,IfAICreate,IsAlbum,AlbumID,PassTime,img,vipnum,VipEndDate,HtmlURL from writing where ((Title like ? or Keywords like ? or brief_short like ?)) and (IfSerial=0 and IsAlbum=0 or IsAlbum=1 and PassArtNum>0) and ClassName='微电影剧本' and IfSerial=0 and ifpass=1 and ifhidden=0 and ifdel=0 order by vipnum desc,PassTime desc