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 (44531,44767,19057,44875,45229,18237,24441,45561,4765,44711,18279,8753,24411,24438,37057,44894,17904,16885,44766,5410,14402,36472,17981,44849,45180,44671,18430,44861,45421,32454,45518,18172,5259,44765,17703,18185,44836,45042,34194,45346,44739,44689,18427,10402,17278,6862,28313,17009,3883,44855,6782,17657,30986,44775,37267,18894,13,17335,45043,44867,5388,44687,44865,13922,45262,44878,45515,44858,16935,17351)
Unknown column 'np.person' in 'where clause'