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 (18301,17278,13,17335,45229,44856,44854,44762,28530,17527,45515,44861,44674,16935,17981,18996,18353,5388,17351,44687,44894,44867,16885,44669,45043,4686,18688,17904,45561,44848,44845,44870,45516,6875,3883,18650,45517,18648,13988,14622,45042,17114,45518,44531,44849,18719,24412,14402,17237,18237,44640,44837,37057,44863,24411,32454,5410,36472,9341,44764,13425,44868,44884,24441,18794,18981,44865,17009,3,31354)
Unknown column 'np.person' in 'where clause'