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 (45561,37057,17492,44869,18172,8753,18996,37267,45229,45517,45515,45346,44685,17237,30963,44894,18185,44866,17335,17755,44640,39676,5388,45262,17278,44768,44863,17835,5993,44873,44868,44739,30135,3,44858,30986,17904,6609,18572,22509,44764,44867,5259,45518,17556,44687,17981,45286,4686,44837,44884,43800,16935,45516,44669,44861,44878,24441,18042,28313,45421,44689,17092,18301,6875,17114,17848,44711,18237,18900)
Unknown column 'np.person' in 'where clause'