$query="select a.item_id, b.stock_qty, a.unit_id from tbl_items a left join item_stock_dispensary b on a.item_id = b.item_id where a.item_id = '".$value."' and a.is_group_item = 'N' and b.ohc_location_id = '".$_SESSION['current_ohcttype']."' limit 1";