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 (45515,17237,45262,8753,44865,32454,18301,24412,18237,37057,44878,17492,44870,44835,17092,24441,18794,28313,17835,3883,44765,45229,18996,45286,30135,19078,44851,44894,17556,44685,22509,18652,6609,45051,44687,44884,44711,17527,18900,44669,16885,44868,44767,18446,4765,45561,17601,44836,18688,28530,6782,10402,16935,45043,17114,30986,44849,3,36472,44858,14402,44866,6875,18648,18894,43800,44856,5388,30963,44739)
Unknown column 'np.person' in 'where clause'