Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id IN (45177,39676,43800,13922,45561,24411,24438,16935,45043,45180,17703,44640,18172,44869,44767,17114,44884,10402,44531,45229,18894,19057,45516,30963,18648,14402,45421,44863,44837,18900,44764,17527,45286,17351,17601,45042,31354,17492,6609,44870,24412,30135,9341,13988,18572,18427,44865,17981,44669,44851,45517,4686,34194,6782,3883,17335,17835,44854,18353,18185,17848,19078,6875,16885,45051,5993,37057,44685,45518,44894)
Unknown column 'np.person' in 'where clause'