q select pid from dex_product where pid<>'20116' and ( pcharacter='' ) and pactivate='1' order by rand() limit 18 relate ,12467,10163,9776,13732,14451,18212,9932,9141,6505,10458,10545,2887,10714,3204,8284,7776,19787,1999 Array ( [0] => 12467 [1] => 10163 [2] => 9776 [3] => 13732 [4] => 14451 [5] => 18212 [6] => 9932 [7] => 9141 [8] => 6505 [9] => 10458 [10] => 10545 [11] => 2887 [12] => 10714 [13] => 3204 [14] => 8284 [15] => 7776 [16] => 19787 [17] => 1999 )