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 (5388,45286,17335,17527,17703,17981,44867,17114,45043,44863,18172,45042,18688,19078,44669,17904,44711,24412,18301,13988,17092,3,10402,44764,44685,31354,16885,17839,17278,14622,44861,44894,18894,14402,45567,17771,5993,44884,45561,44866,44739,18237,45072,18572,13425,44687,44868,44855,13,17009,45277,17835,18981,17755,17237,22509,24438,44836,37057,44762,18427,44640,18353,45421,17848,18719,6609,44689,44858,18185)
Unknown column 'np.person' in 'where clause'