select pid as 'id',pnameth 'name',if(now() between pflash_start and pflash_end,pflash_price,pprice) as 'price',pphoto 'photo',pstatus 'status' ,if( (now() between pflash_start and pflash_end) and pprice0 ,pprice,pfullprice) 'fullprice' from dex_product where pactivate=1 and phide=0 and (porder_end=0 or porder_end>now()) and ( pnameth like '%%Oda%%Cinnamon%%Nobunaga%%OP%%:%%Sunny%%Sunny%%Girl%%[Anime%%Edition]%%' or pnameen like '%%Oda%%Cinnamon%%Nobunaga%%OP%%:%%Sunny%%Sunny%%Girl%%[Anime%%Edition]%%' or ptag like '%%Oda%%Cinnamon%%Nobunaga%%OP%%:%%Sunny%%Sunny%%Girl%%[Anime%%Edition]%%' or pid='Oda Cinnamon Nobunaga OP : Sunny Sunny Girl [Anime Edition]' or pbarcode='Oda Cinnamon Nobunaga OP : Sunny Sunny Girl [Anime Edition]' ) and pstatus<>'Preorder' order by pid desc limit 0,30 select pid as 'id',pnameth 'name',if(now() between pflash_start and pflash_end,pflash_price,pprice) as 'price',pphoto 'photo',pstatus 'status' ,if( (now() between pflash_start and pflash_end) and pprice0 ,pprice,pfullprice) 'fullprice' from dex_product where pactivate=1 and phide=0 and (porder_end=0 or porder_end>now()) and ( pnameth like '%%Oda%%Cinnamon%%Nobunaga%%OP%%:%%Sunny%%Sunny%%Girl%%[Anime%%Edition]%%' or pnameen like '%%Oda%%Cinnamon%%Nobunaga%%OP%%:%%Sunny%%Sunny%%Girl%%[Anime%%Edition]%%' or ptag like '%%Oda%%Cinnamon%%Nobunaga%%OP%%:%%Sunny%%Sunny%%Girl%%[Anime%%Edition]%%' or pid='Oda Cinnamon Nobunaga OP : Sunny Sunny Girl [Anime Edition]' or pbarcode='Oda Cinnamon Nobunaga OP : Sunny Sunny Girl [Anime Edition]' ) and pstatus='Preorder' order by pid desc limit 0,30