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 (44875,18650,44867,45177,17703,6862,18301,18652,44851,6609,14402,5388,45051,44745,5259,18430,44854,44848,37267,17114,44764,17556,18353,18427,45072,45561,44775,13922,44894,24438,34194,18900,45516,43800,44869,18572,44884,17839,44766,17527,44853,30135,18446,28313,44858,45286,17835,17756,18286,18981,44861,45346,32454,3883,44531,8753,4765,30963,18172,17904,17981,44837,45042,24412,17848,44689,17009,17351,44674,17335)
Unknown column 'np.person' in 'where clause'