See code below:

Code:
		$getraidid = $db->query_read("
			SELECT raid_id
				FROM " . TABLE_PREFIX . "vbgms_raids
				WHERE time_start = '"
...