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 (44878,18446,45262,18185,4765,6782,45518,16885,45516,44865,18900,44531,24412,18042,17114,28530,17278,14622,13988,44765,18427,45286,6609,18353,17835,37267,45567,17848,44867,45229,18652,16935,45180,44854,17009,44868,45517,18996,45177,17981,44685,18719,44687,34194,45515,45051,17756,17492,44861,10402,45277,45421,44837,45072,13922,17771,37057,9341,44745,18172,44775,43800,18894,39676,44766,8753,17237,44835,5388,44671)
Unknown column 'np.person' in 'where clause'