q select pid from dex_product where pid<>'20115' and ( pcharacter='' ) and pactivate='1' order by rand() limit 18 relate ,19398,19253,11872,3658,2703,14606,21336,22276,21611,20584,21024,24498,20555,5428,22213,22164,20267,14610 Array ( [0] => 19398 [1] => 19253 [2] => 11872 [3] => 3658 [4] => 2703 [5] => 14606 [6] => 21336 [7] => 22276 [8] => 21611 [9] => 20584 [10] => 21024 [11] => 24498 [12] => 20555 [13] => 5428 [14] => 22213 [15] => 22164 [16] => 20267 [17] => 14610 )