q select pid from dex_product where pid<>'20114' and ( pcharacter='' ) and pactivate='1' order by rand() limit 18 relate ,20906,6582,14949,12484,8500,2028,5789,20969,4274,19858,21112,3848,13041,10449,11537,9388,10853,21337 Array ( [0] => 20906 [1] => 6582 [2] => 14949 [3] => 12484 [4] => 8500 [5] => 2028 [6] => 5789 [7] => 20969 [8] => 4274 [9] => 19858 [10] => 21112 [11] => 3848 [12] => 13041 [13] => 10449 [14] => 11537 [15] => 9388 [16] => 10853 [17] => 21337 )