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 (44884,37267,32454,17981,45421,22509,18185,45567,13922,44765,44711,44867,44856,17703,6862,17601,5259,19078,6609,44854,17839,14402,18719,28530,44669,17756,44863,17527,18894,17492,9341,4686,45042,17092,30963,44878,28313,44873,45262,17351,39676,45072,44739,18286,17335,45561,44775,44865,13425,16935,44687,44685,16885,17835,45346,17848,17237,5388,10402,45516,8753,18688,17114,44848,43800,24441,44866,18301,44861,18353)
Unknown column 'np.person' in 'where clause'