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 (45277,18572,18652,13425,45517,5388,17527,18794,18894,44863,39676,44687,45051,17904,44766,17009,18996,45180,18688,13922,17981,13,17848,17335,30986,44765,18427,44835,37057,28530,36472,45043,17657,17351,44856,17601,4686,44764,45567,24438,45229,44867,8753,17278,44849,17556,44674,44868,44853,44685,44851,24412,45042,44865,44762,44775,44878,24441,28313,14622,44669,44711,18981,45516,44861,44837,44894,44836,44845,43800)
Unknown column 'np.person' in 'where clause'