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,44836,44766,6875,44873,13,10402,5993,44835,17703,17335,14622,17756,44689,44711,44855,18185,5388,37057,28313,28530,18996,19078,18688,44869,18286,9341,17657,17278,17092,45518,43800,30986,44849,44863,44853,44768,6862,37267,44856,44764,24411,30135,18719,4765,18172,3,17981,44685,32454,17601,18279,17755,14402,44865,18652,44878,45515,45516,18237,45042,30963,31354,17527,44867,44745,44866,44875,17771,18427)
Unknown column 'np.person' in 'where clause'