q select pid from dex_product where pid<>'20117' and ( pcharacter='' ) and pactivate='1' order by rand() limit 18 relate ,5181,5664,7331,10156,9783,5815,1473,20951,17035,9150,5486,20122,5707,2383,4700,2690,6990,2379 Array ( [0] => 5181 [1] => 5664 [2] => 7331 [3] => 10156 [4] => 9783 [5] => 5815 [6] => 1473 [7] => 20951 [8] => 17035 [9] => 9150 [10] => 5486 [11] => 20122 [12] => 5707 [13] => 2383 [14] => 4700 [15] => 2690 [16] => 6990 [17] => 2379 )