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 (44884,3883,18981,4686,18900,44762,32454,34194,5259,45286,45229,24441,17756,44837,45561,18996,45516,17492,28313,18286,13,16935,17848,6609,37267,44849,45567,44768,45517,17839,18042,44848,18652,24438,44687,24411,44764,17904,17009,44765,30135,44868,18427,17703,39676,44685,13425,17981,44861,44739,18185,17278,45515,3,18353,44767,16885,17657,17771,18688,44836,17335,44870,17527,13988,36472,4765,28530,18172,17114)
Unknown column 'np.person' in 'where clause'