q select pid from dex_product where pid<>'11321' and ( pcharacter='82' ) and pactivate='1' order by rand() limit 18 relate ,5816,6115,2128,2125,8523,18723,5030,2192,2130,18724,2123,2124,2129,6113,844,6114,16618,7225 Array ( [0] => 5816 [1] => 6115 [2] => 2128 [3] => 2125 [4] => 8523 [5] => 18723 [6] => 5030 [7] => 2192 [8] => 2130 [9] => 18724 [10] => 2123 [11] => 2124 [12] => 2129 [13] => 6113 [14] => 844 [15] => 6114 [16] => 16618 [17] => 7225 )