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 (44640,44870,45229,44775,44768,17601,44835,16885,8753,17771,44858,44739,6875,44875,45516,17657,45515,17492,14622,45561,44855,18652,45518,44767,45421,30986,44837,44671,18185,32454,44863,18794,18286,45042,5410,18446,45177,44766,6862,44861,45277,6609,44865,24441,18172,17237,17756,45072,24412,34194,37057,44878,44765,17904,45346,37267,44836,17009,16935,18900,44851,44845,44854,4686,9341,18427,24438,18279,44689,18648)
Unknown column 'np.person' in 'where clause'