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 (13,44870,22509,18427,44855,44764,13425,18648,45567,18279,45516,18572,17237,44767,45277,45346,44856,45042,44674,44849,18894,44765,17601,3883,45180,14402,44768,34194,44711,17114,44685,6862,17835,17904,44865,44845,44868,5993,44873,45262,45286,17657,9341,18301,44689,39676,17839,37267,17278,8753,16885,6609,44866,37057,44875,45072,18652,13988,17756,18688,19078,17703,5388,45229,18794,44867,17848,44640,45561,44669)
Unknown column 'np.person' in 'where clause'