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 (44745,18286,17755,44837,18719,44835,18900,9341,44674,17114,17092,5259,16885,44851,44868,17756,28313,13922,44768,44687,17835,45286,36472,17278,45517,45229,44867,37267,18301,44858,45516,17527,13425,44863,44884,8753,18185,44866,17657,17839,17237,30986,6782,17492,18648,44856,45042,44865,13,24438,22509,18688,14402,44671,28530,44711,45262,6875,24411,45180,6862,44767,45277,34194,45515,44854,44739,17981,17009,44775)
Unknown column 'np.person' in 'where clause'