ブログ詳細

 select 
		t_blog.*

		,m_course.name course_name
		,m_cast.name cast_name
		,m_blog_cat.name blog_cat_name
	 from t_blog 

		LEFT JOIN m_cast
		ON 			
			m_cast.cast_id = t_blog.cast_id
	
		LEFT JOIN m_blog_cat
		ON 			
			m_blog_cat.blog_cat_id = t_blog.blog_cat_id
	
		LEFT JOIN m_course
		ON 			
			m_course.course_id = t_blog.course_id
	
	 where blog_id =  and t_blog.del_login_id = 0

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'and t_blog.del_login_id = 0' at line 21