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 (44858,44868,44687,22509,45177,45515,44531,17278,45042,9341,17703,17114,18301,44866,16885,44869,45518,44873,34194,44739,28313,44671,13922,30986,17771,18650,18648,18185,18652,44640,45180,6782,17755,44766,18430,31354,18794,44767,44849,17839,37057,44854,44835,18894,17904,17848,37267,6862,18996,44853,45051,45421,16935,45517,17335,5993,45072,45262,17527,44669,17756,24441,44855,17657,44863,44875,4765,14402,17601,24412)
Unknown column 'np.person' in 'where clause'