q select pid from dex_product where pid<>'13068' and ( pcharacter='80' ) and pactivate='1' order by rand() limit 18 relate ,18300,4739,21358,11718,13871,8987,16192,5009,20343,19825,15434,1817,17504,10423,2202,8887,20578,13971 Array ( [0] => 18300 [1] => 4739 [2] => 21358 [3] => 11718 [4] => 13871 [5] => 8987 [6] => 16192 [7] => 5009 [8] => 20343 [9] => 19825 [10] => 15434 [11] => 1817 [12] => 17504 [13] => 10423 [14] => 2202 [15] => 8887 [16] => 20578 [17] => 13971 )