query("SELECT services.id, services.name, subscribers.subscriberID, subscribers.telegramID FROM services LEFT JOIN services_subscriber ON services_subscriber.serviceIDFK = services.id LEFT JOIN subscribers ON services_subscriber.subscriberIDFK = subscribers.subscriberID WHERE subscribers.telegramID =" . $tg_user['id']); //$query = $mysqli->query("SELECT id, name FROM services"); if ($query->num_rows){ $timestamp = time(); echo '