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 (44531,13425,18172,39676,18981,18900,44848,9341,44765,44849,18237,5993,18286,17492,45346,44835,17848,44837,37057,17278,24438,44674,16935,17335,18652,13988,36472,30963,10402,45043,17755,5259,17092,17237,45051,6782,44878,45177,17839,44875,44687,45229,44689,44685,17527,28313,5410,45180,19078,14622,44894,44851,44745,18446,18894,34194,44853,44870,17904,44858,37267,45516,45286,30135,18648,45561,44768,44767,45072,44855)
Unknown column 'np.person' in 'where clause'