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 (17703,44836,44640,30135,17848,37267,18353,37057,17092,44669,44689,18446,44866,44853,44868,18996,17601,17009,44869,30986,22509,44835,43800,44849,44711,32454,45516,44865,44894,13922,17351,44685,45561,45515,44687,44767,44873,18981,17756,44764,45180,44671,44845,10402,16935,17981,18286,45277,24411,18648,45177,44848,18185,45567,18794,45517,18894,39676,44855,45346,45262,16885,17114,17755,4686,44856,8753,5388,44861,44766)
Unknown column 'np.person' in 'where clause'