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 (9341,13425,32454,14402,45277,13922,44854,45286,34194,17835,18794,5388,18688,45051,44894,44869,45518,17335,13,17527,44671,18237,44766,17904,44878,17756,18446,17492,44849,18650,18353,45262,5259,17351,28530,44870,44855,44767,44858,31354,45229,6609,5410,17009,18719,45072,28313,4765,16885,45517,36472,18430,18172,3883,30986,18981,13988,44853,24441,6782,37057,44848,18286,17278,18042,44875,5993,45515,17556,17755)
Unknown column 'np.person' in 'where clause'