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 (44861,17981,18446,45517,44858,17756,44868,18172,44669,19057,13,45262,45042,14622,44845,5259,28530,17848,45277,30986,44835,45518,45515,45229,18430,24411,44767,6609,44853,18652,34194,44685,37267,44851,18894,44870,44848,45043,17657,17237,44837,44855,9341,44687,44766,44866,37057,30135,45072,3,31354,18185,17278,44878,44775,17092,17839,6782,44854,39676,24412,13988,18572,30963,5410,17009,18042,44674,6862,19078)
Unknown column 'np.person' in 'where clause'