q select pid from dex_product where pid<>'20116' and ( pcharacter='' ) and pactivate='1' order by rand() limit 18 relate ,22043,6562,3147,3032,1495,1418,14559,19743,19504,22303,22121,1518,6659,4001,5703,5244,7483,18224 Array ( [0] => 22043 [1] => 6562 [2] => 3147 [3] => 3032 [4] => 1495 [5] => 1418 [6] => 14559 [7] => 19743 [8] => 19504 [9] => 22303 [10] => 22121 [11] => 1518 [12] => 6659 [13] => 4001 [14] => 5703 [15] => 5244 [16] => 7483 [17] => 18224 )