q select pid from dex_product where pid<>'18685' and ( pcharacter='213' ) and pactivate='1' order by rand() limit 18 relate ,11051,2926,17517,21747,15586,11067,13141,24656,16065,13143,24647,16063,17520,17519,11057,16062,20056,11063 Array
(
[0] => 11051
[1] => 2926
[2] => 17517
[3] => 21747
[4] => 15586
[5] => 11067
[6] => 13141
[7] => 24656
[8] => 16065
[9] => 13143
[10] => 24647
[11] => 16063
[12] => 17520
[13] => 17519
[14] => 11057
[15] => 16062
[16] => 20056
[17] => 11063
)