q select pid from dex_product where pid<>'11341' and ( pcharacter='85' ) and pactivate='1' order by rand() limit 18 relate ,2119,2373,2334,2109,5029,11046,6123,6203,208,2101,9422,846,6535,23581,8952,5269,2117,2106 Array ( [0] => 2119 [1] => 2373 [2] => 2334 [3] => 2109 [4] => 5029 [5] => 11046 [6] => 6123 [7] => 6203 [8] => 208 [9] => 2101 [10] => 9422 [11] => 846 [12] => 6535 [13] => 23581 [14] => 8952 [15] => 5269 [16] => 2117 [17] => 2106 )