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