q select pid from dex_product where pid<>'22112' and ( pcharacter='' ) and pactivate='1' order by rand() limit 18 relate ,20951,21615,2867,1746,6729,11173,12486,7218,4052,5464,5258,17313,1482,21978,11239,7330,5264,3651 Array ( [0] => 20951 [1] => 21615 [2] => 2867 [3] => 1746 [4] => 6729 [5] => 11173 [6] => 12486 [7] => 7218 [8] => 4052 [9] => 5464 [10] => 5258 [11] => 17313 [12] => 1482 [13] => 21978 [14] => 11239 [15] => 7330 [16] => 5264 [17] => 3651 )