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 (45229,13425,6782,45072,45180,44768,17771,24412,44767,45177,45277,44765,17981,14402,17492,44849,44873,44711,44531,18172,30135,44851,30963,44848,6862,45516,44669,45043,17092,44745,5388,17756,18042,22509,44865,45042,17009,19057,5259,44854,18794,32454,24411,45346,44837,44863,44640,44853,44856,6875,18185,4765,44739,8753,4686,17839,17556,18652,18719,45567,17351,18301,5410,5993,17904,44867,18279,44866,13988,18427)
Unknown column 'np.person' in 'where clause'