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 (17756,18900,30963,18237,37057,17009,4765,34194,43800,44766,45051,44861,17335,31354,44851,44764,45043,24412,44835,24411,18353,24438,18650,16935,18185,17527,18688,28530,44671,44687,44739,13922,17981,17755,18794,44837,44875,17237,17114,5388,18981,6609,13,45346,17771,44865,18652,44855,18427,44866,17657,45277,17092,17904,18286,44894,18648,44853,44767,18572,17848,5259,30986,19078,45515,44873,44863,44669,13988,45262)
Unknown column 'np.person' in 'where clause'