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 (17904,13922,18996,44765,13,44837,3883,22509,13425,44835,45277,19057,34194,17114,44669,18648,17756,18794,17278,44640,17771,36472,6782,44674,6609,17755,16935,18172,44745,45518,45180,17527,32454,17009,45286,45229,44875,45515,17335,45516,5388,10402,45561,17981,18279,44766,18286,45051,45346,44866,45262,44865,44775,18042,18688,5993,14622,13988,44856,44855,44858,44531,44685,37057,39676,37267,18900,17351,6862,18894)
Unknown column 'np.person' in 'where clause'