q select pid from dex_product where pid<>'11321' and ( pcharacter='82' ) and pactivate='1' order by rand() limit 18 relate ,2129,9321,2134,6114,2132,2128,2192,23688,2131,24546,2123,6127,8523,5030,11350,5816,844,23873 Array ( [0] => 2129 [1] => 9321 [2] => 2134 [3] => 6114 [4] => 2132 [5] => 2128 [6] => 2192 [7] => 23688 [8] => 2131 [9] => 24546 [10] => 2123 [11] => 6127 [12] => 8523 [13] => 5030 [14] => 11350 [15] => 5816 [16] => 844 [17] => 23873 )