SELECT a.*, b.companyname as exp_comp_name, k.companyname as k_companyname,
	        pokup.companyname as p_companyname, o.companyname as o_companyname
	    FROM spotix_platforma.Message244 a
	    LEFT JOIN spotix_platforma.Message122 b
	        ON (a.id_expeditor_company = b.id_user)
	    LEFT JOIN spotix_platforma.Message122 k
	        ON (a.Contractor = k.id_user)
	    LEFT JOIN spotix_platforma.Message149 z
	        ON (a.Order_ID = z.Message_ID)
	    LEFT JOIN spotix_platforma.Message122 pokup
	        ON (z.id_deliver = pokup.id_user)
	    LEFT JOIN spotix_platforma.User u
	        ON (a.User_ID = u.User_ID)
	    LEFT JOIN spotix_platforma.Message122 o
	        ON (u.Parent_User_ID = o.id_user)

	    WHERE a.Checked = 1
	    ORDER BY a.Created desc
	    LIMIT 0, 100
	
SELECT command denied to user 'spotix_trans_user_2'@'10.1.5.204' for table 'Message244'