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 (16935,44687,18427,44875,45286,17981,44858,45515,24411,30135,18430,18996,44853,32454,17556,44854,24438,17237,44640,44836,17335,17839,19057,5388,6875,44845,17009,44775,43800,17755,18185,4686,13,18237,4765,44689,17114,28530,17351,44669,6862,44855,44835,45567,45043,10402,17278,17756,44849,44868,18894,17601,44765,17835,17904,19078,44884,17657,44865,45051,45518,6782,37057,5410,45277,3,18353,18172,44866,17092)
Unknown column 'np.person' in 'where clause'