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 (19057,45346,45042,44849,6609,24411,45043,3,3883,18572,18688,44835,44856,14402,44868,44836,45072,17114,18794,18981,14622,17981,13922,5388,18650,44875,6782,44685,44866,17527,44766,45177,43800,18279,44837,44669,4765,44775,44858,45516,17755,44764,17848,32454,18648,44687,17839,36472,24441,18427,44854,13,44894,18172,30986,28530,6862,45051,45567,44765,17835,4686,13425,17009,17092,31354,44863,45518,17278,18185)
Unknown column 'np.person' in 'where clause'