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 (44873,17527,18185,5410,24411,18042,17556,9341,13,17335,30135,17092,45518,44866,44869,44711,18572,45051,18427,28313,17771,44855,4765,18301,45229,45262,17601,18286,30986,45043,14402,22509,14622,44870,44868,17492,17237,18279,6875,44853,24441,18353,17351,17756,45421,5388,45517,44835,44739,44856,17839,4686,18446,18172,24438,44854,45515,13988,17904,45346,13922,44836,17657,45177,44640,17703,28530,44531,34194,44766)
Unknown column 'np.person' in 'where clause'