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 (44837,44739,45567,17755,44875,44865,17278,5410,17981,44894,30963,44674,28313,18185,36472,17839,6862,44861,17009,44836,37057,9341,45180,5388,17848,44766,18719,24411,13922,44868,24441,44884,24438,44849,44848,6875,13,45229,34194,44767,45043,44863,44762,14622,5259,17335,17527,45515,44765,18688,44640,6782,18353,44858,6609,17351,17756,3,18172,17114,44853,18794,18286,13425,17703,18279,45561,8753,45421,44878)
Unknown column 'np.person' in 'where clause'