Array
(
)
SELECT mt_serials_cloud.id,
								mt_serials_cloud.db_host,
								mt_serials_cloud.db_username,
								mt_serials_cloud.db_password,
								mt_serials_cloud.enterhash,
								mt_serials_cloud.domena,
								mt_domeny.nazwa as domenanazwa, 
								mt_serials_cloud.db_name,
								mt_serials_cloud.dodatek_hrm,
								mt_serials_cloud.modules_list,
								mt_serials_cloud.modules_add,
								mt_serials_cloud.modules_out,
								mt_serials_cloud.data,
								mt_serials_cloud.forceBuffers,
								mt_serials_cloud.show_error,
								mt_serials_cloud.tabela_www,
								mt_serials_cloud.zablokowana_baza,
								mt_serials_cloud.da_usuniete,
								mt_cloud_opt_www.stopka,
								IF(LENGTH(a2.enterhash) > 0, CONCAT("https://", a2.enterhash, ".asystentchmura.pl"), "") AS url_panel_klienta
								FROM 
								mt_serials_cloud 
								LEFT JOIN mt_domeny ON mt_domeny.idr=mt_serials_cloud.id 
								LEFT JOIN mt_serials_cloud a2 ON a2.db_name = mt_serials_cloud.db_name AND a2.panel = 1 AND a2.aplikacja = "Tickety"
								LEFT JOIN mt_cloud_opt_www ON mt_cloud_opt_www.id_chmura = mt_serials_cloud.id
								WHERE 
									(
									(mt_serials_cloud.domena = "tygodnik.szczytno.pl" AND mt_serials_cloud.domena<>"")  OR
									(mt_domeny.nazwa = "tygodnik.szczytno.pl" AND mt_domeny.nazwa<>"")
									)
								LIMIT 1
Lost connection to MySQL server during query