q select pid from dex_product where pid<>'22112' and ( pcharacter='' ) and pactivate='1' order by rand() limit 18 relate ,21714,21715,6636,21716,3827,1520,23405,1404,10147,3436,23814,21719,20306,14313,23398,5782,11210,18598 Array ( [0] => 21714 [1] => 21715 [2] => 6636 [3] => 21716 [4] => 3827 [5] => 1520 [6] => 23405 [7] => 1404 [8] => 10147 [9] => 3436 [10] => 23814 [11] => 21719 [12] => 20306 [13] => 14313 [14] => 23398 [15] => 5782 [16] => 11210 [17] => 18598 )