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 (45262,45072,17904,17351,44868,44835,44767,31354,45051,18572,44853,17492,44845,17601,16885,18688,5259,13988,45042,30135,18301,17009,45516,17703,44685,22509,44867,18794,18185,45517,44766,18042,13425,24412,19078,44674,44669,13922,44765,37267,44870,44873,5410,17237,24411,5388,18894,18652,18996,17835,44689,44854,44711,44865,6609,44856,18430,16935,17114,44848,17278,44836,36472,28313,45567,18172,44837,44884,17839,18648)
Unknown column 'np.person' in 'where clause'