q select pid from dex_product where pid<>'22112' and ( pcharacter='' ) and pactivate='1' order by rand() limit 18 relate ,19461,8357,20263,18601,24218,15776,1492,13575,22164,22831,18598,3507,8570,17408,9974,13037,24617,2646 Array ( [0] => 19461 [1] => 8357 [2] => 20263 [3] => 18601 [4] => 24218 [5] => 15776 [6] => 1492 [7] => 13575 [8] => 22164 [9] => 22831 [10] => 18598 [11] => 3507 [12] => 8570 [13] => 17408 [14] => 9974 [15] => 13037 [16] => 24617 [17] => 2646 )