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 (18650,17755,45177,5993,44671,17351,44849,44845,16885,32454,17839,44837,36472,3,45262,44762,44856,44687,37057,30135,30963,44835,17601,17756,45043,18446,44689,17848,44851,34194,13,45072,44866,44878,17114,45567,9341,37267,45346,17335,18652,44869,31354,44853,14622,17657,45517,44875,18572,44855,45515,18894,44868,8753,45286,16935,6609,17492,24412,28313,44858,18172,45516,45042,13922,44873,44861,44766,6782,28530)
Unknown column 'np.person' in 'where clause'