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 (17278,37057,44687,44685,6782,17771,17755,44853,17009,18894,19057,45229,4686,44866,18981,18650,4765,17335,44854,22509,45072,44870,44640,18172,45051,44858,30135,44878,24411,44845,32454,17527,34194,18301,45042,18794,18719,18900,45043,45180,37267,17601,45517,6609,45518,13922,44775,28530,18430,17657,14622,43800,39676,45277,44861,18427,6862,17848,44851,10402,18652,44739,17092,45561,44863,44856,3883,45346,18185,44855)
Unknown column 'np.person' in 'where clause'