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 (17114,18286,13922,44870,17703,18572,18894,44851,44837,16885,13,45518,17092,44853,44671,24441,17492,5993,18794,5259,14622,24438,45421,45286,34194,4686,44875,44878,17556,44848,24411,17904,10402,44865,45277,37057,44669,9341,44640,18652,24412,8753,45072,44711,44867,4765,6862,37267,30986,44854,18446,44863,17278,6609,28530,44884,17835,18648,18688,3883,45262,44835,44836,44764,22509,45043,17335,30135,44873,17755)
Unknown column 'np.person' in 'where clause'