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 (17009,17835,45262,37057,45180,5259,18648,45516,9341,45072,39676,44868,44856,13988,44766,3883,45515,17092,17492,44767,13425,18427,45517,44671,18286,18650,17755,17351,44854,17657,17237,17335,18894,45346,37267,45567,44837,17839,30963,44849,44669,18719,8753,44875,45043,44739,44865,22509,44861,34194,44764,28313,28530,44866,17278,44869,43800,16885,18794,18172,44873,44835,17556,44640,30986,18279,44858,31354,18301,44894)
Unknown column 'np.person' in 'where clause'