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 (44685,18650,17335,18981,17981,18301,17237,28530,45421,17771,37057,44775,44873,17835,44837,18572,18237,45516,24441,14622,44878,44762,30135,17009,6609,34194,44835,45518,44855,37267,44863,17657,44894,10402,13922,18794,6862,17114,44858,44870,24412,13,36472,19057,17904,44836,22509,17278,18446,44853,45262,45277,18286,45286,44669,45180,44764,44674,44861,45042,44854,44739,17527,44868,24438,4686,44640,45567,18996,5388)
Unknown column 'np.person' in 'where clause'