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 (4686,18446,44837,44884,3,24411,24441,45072,18286,44875,44835,44867,17114,22509,44856,5993,44863,17278,44861,44878,44865,45518,18430,18894,30963,17848,34194,44764,44685,44853,17904,18794,44870,19057,32454,10402,3883,43800,17335,17556,18652,17601,45229,17835,44669,18572,16935,44868,17981,45346,44869,17351,18719,45517,45286,18172,45042,5410,45515,45262,30986,8753,45516,44531,4765,28530,24438,18353,17756,17839)
Unknown column 'np.person' in 'where clause'