q select pid from dex_product where pid<>'21421' and ( pcharacter='168' ) and pactivate='1' order by rand() limit 18 relate ,8377,10182,5287,17116,15536,13983,8532,7037,20447,3898,8056,16460,10150,8335,8173,8181,10631,16827 Array ( [0] => 8377 [1] => 10182 [2] => 5287 [3] => 17116 [4] => 15536 [5] => 13983 [6] => 8532 [7] => 7037 [8] => 20447 [9] => 3898 [10] => 8056 [11] => 16460 [12] => 10150 [13] => 8335 [14] => 8173 [15] => 8181 [16] => 10631 [17] => 16827 )