q select pid from dex_product where pid<>'22112' and ( pcharacter='' ) and pactivate='1' order by rand() limit 18 relate ,6073,12183,16048,21801,19740,4184,5779,19341,20914,5636,3645,10036,1407,6502,11765,9976,8829,14475 Array ( [0] => 6073 [1] => 12183 [2] => 16048 [3] => 21801 [4] => 19740 [5] => 4184 [6] => 5779 [7] => 19341 [8] => 20914 [9] => 5636 [10] => 3645 [11] => 10036 [12] => 1407 [13] => 6502 [14] => 11765 [15] => 9976 [16] => 8829 [17] => 14475 )