q select pid from dex_product where pid<>'8539' and ( pcharacter='183' ) and pactivate='1' order by rand() limit 18 relate ,10279,8439,11026,22224,14686,8438,14693,11020,11032,6496,8437,11029,9421,11488,8436,8435,4821 Array ( [0] => 10279 [1] => 8439 [2] => 11026 [3] => 22224 [4] => 14686 [5] => 8438 [6] => 14693 [7] => 11020 [8] => 11032 [9] => 6496 [10] => 8437 [11] => 11029 [12] => 9421 [13] => 11488 [14] => 8436 [15] => 8435 [16] => 4821 )