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