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 (17848,30986,44767,44894,18981,5388,44869,36472,3883,44835,17527,18237,17492,28313,16885,17009,5993,45262,44640,45177,13922,18279,44711,18353,44837,18427,30963,17556,45229,45286,9341,44865,44851,45277,34194,24412,8753,45042,4686,44849,45515,18996,18794,44739,45517,45518,32454,44873,18652,17981,37267,44671,44775,24411,4765,45516,14402,24441,18650,17237,31354,44863,44745,18688,44855,45346,44856,5259,44685,18301)
Unknown column 'np.person' in 'where clause'