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 (17278,44858,13922,16935,13,44674,17848,19078,18430,44869,17771,44767,32454,45518,17839,18042,5410,44853,44870,14402,18279,45286,17492,31354,45229,18719,18572,17756,17114,44687,24412,44739,18688,18353,37267,36472,17335,44851,44855,18286,17657,44865,17527,37057,18446,24438,45072,18652,17237,4765,44868,17009,30135,8753,45177,18981,44765,3883,17755,6875,43800,45262,6782,45043,45567,44768,44878,44766,28530,18301)
Unknown column 'np.person' in 'where clause'