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