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 (18353,45262,18446,45346,44873,44671,18719,17237,44868,14622,13922,4686,45567,18794,6609,18185,17009,19057,44640,44865,45051,45042,44866,44837,45518,18427,44689,18301,45072,18279,30986,44775,44855,37057,44875,17657,24411,32454,24412,44869,44685,18648,44867,44858,44669,44856,44739,45180,45229,17114,17092,17756,17278,44863,44768,5410,44711,18286,5993,17601,17527,19078,45516,17335,17755,13988,44878,44853,22509,5259)
Unknown column 'np.person' in 'where clause'