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 (45180,18042,44856,30986,18894,18572,17848,17756,6609,18688,44775,17114,18446,44669,44837,45561,13922,44687,44869,45277,44894,44884,8753,14622,13425,18719,44711,44849,44671,44762,44868,18794,44768,44866,6862,18648,44858,17527,44689,32454,5259,17492,5410,44851,45177,44863,24411,45516,17556,45262,44640,44854,4686,45043,43800,44873,5993,45567,45072,22509,17335,45346,44870,17835,13,44848,18286,44835,18279,13988)
Unknown column 'np.person' in 'where clause'