q select pid from dex_product where pid<>'20114' and ( pcharacter='' ) and pactivate='1' order by rand() limit 18 relate ,2695,1546,5631,1090,4690,22132,21334,6502,8249,7125,9198,7457,20583,6275,486,2375,2751,6420 Array ( [0] => 2695 [1] => 1546 [2] => 5631 [3] => 1090 [4] => 4690 [5] => 22132 [6] => 21334 [7] => 6502 [8] => 8249 [9] => 7125 [10] => 9198 [11] => 7457 [12] => 20583 [13] => 6275 [14] => 486 [15] => 2375 [16] => 2751 [17] => 6420 )