$test=mysql_fetch_array(mysql_query('SELECT `id` FROM `items_users` WHERE `uid` = "'.$u->info['id'].'" AND (`item_id` = 4740 OR `item_id` = 4741 OR `item_id` = 4742 OR `item_id` = 4743 OR `item_id` = 4744) LIMIT 1'));
$itm=mysql_fetch_array(mysql_query('SELECT COUNT(*) FROM `items_users` WHERE `item_id` = "'.mysql_real_escape_string($pvr['tr'][$pvr['i']][0]).'" AND `uid` = "'.$u->info['id'].'" AND (`delete` = "0" OR `delete` = "1000") AND `inShop` = "0" AND `inOdet` = "0" LIMIT 1'));
mysql_query('UPDATE `items_users` SET `delete` = "'.time().'" WHERE `item_id` = "'.mysql_real_escape_string($pvr['tr'][$pvr['i']][0]).'" AND `uid` = "'.$u->info['id'].'" AND (`delete` = "0" OR `delete` = "1000") AND `inShop` = "0" AND `inOdet` = "0" LIMIT '.mysql_real_escape_string($pvr['tr'][$pvr['i']][1]));