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 (9341,18286,17755,44866,44687,45042,17351,45262,17237,44711,44837,44861,18719,45516,44849,17601,6782,44865,24411,17527,17009,24438,5993,3,18688,13988,13425,24441,44765,18650,24412,18900,5410,45286,37057,45072,17981,44870,44766,17556,30986,18301,8753,45515,44884,44640,17278,45561,18427,19057,44856,17492,18172,44669,16885,10402,17703,45277,44853,44845,18794,17657,44873,13,45517,30963,32454,44848,17114,31354)
Unknown column 'np.person' in 'where clause'