q select pid from dex_product where pid<>'22112' and ( pcharacter='' ) and pactivate='1' order by rand() limit 18 relate ,2703,3819,5697,9766,7897,22749,6611,12475,7451,6443,6585,12965,8258,3893,20954,2738,7775,16369 Array ( [0] => 2703 [1] => 3819 [2] => 5697 [3] => 9766 [4] => 7897 [5] => 22749 [6] => 6611 [7] => 12475 [8] => 7451 [9] => 6443 [10] => 6585 [11] => 12965 [12] => 8258 [13] => 3893 [14] => 20954 [15] => 2738 [16] => 7775 [17] => 16369 )