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 (45561,18996,44531,44853,44870,17601,28530,44765,18894,45072,17092,14622,44856,44687,45262,45518,45051,16935,45229,18286,44836,44854,45177,44861,45567,17556,17981,13988,17848,17904,18572,5410,17527,18353,44865,18172,17278,24412,39676,45517,17009,36472,44766,32454,44689,44835,44873,18652,13,9341,4686,44851,24441,45515,8753,44837,18719,34194,44884,3,4765,37057,6875,44845,28313,44894,18648,17492,45516,44739)
Unknown column 'np.person' in 'where clause'