q select pid from dex_product where pid<>'21886' and ( pcharacter='562' ) and pactivate='1' order by rand() limit 18 relate ,23975,24092,17383,17382,21883,17384,21884,21882,24091,20146,23972,23971,20158,17381,21885,23973,21228,17919 Array
(
[0] => 23975
[1] => 24092
[2] => 17383
[3] => 17382
[4] => 21883
[5] => 17384
[6] => 21884
[7] => 21882
[8] => 24091
[9] => 20146
[10] => 23972
[11] => 23971
[12] => 20158
[13] => 17381
[14] => 21885
[15] => 23973
[16] => 21228
[17] => 17919
)