q select pid from dex_product where pid<>'21437' and ( pcharacter='168' ) and pactivate='1' order by rand() limit 18 relate ,10199,5570,4496,12962,17567,21464,14051,7211,7517,12121,6677,17135,3897,15179,7418,5300,12114,17137 Array ( [0] => 10199 [1] => 5570 [2] => 4496 [3] => 12962 [4] => 17567 [5] => 21464 [6] => 14051 [7] => 7211 [8] => 7517 [9] => 12121 [10] => 6677 [11] => 17135 [12] => 3897 [13] => 15179 [14] => 7418 [15] => 5300 [16] => 12114 [17] => 17137 )