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 (44640,44866,45262,17835,44767,13922,45346,44775,30986,6782,44851,14622,3,17657,17237,44745,44875,44835,17904,18996,44764,24412,45286,17009,37057,17527,18279,13425,17703,18794,19078,24441,8753,44671,44868,44865,18446,17755,44855,45042,44878,36472,16885,45043,43800,28530,18650,44858,45518,44854,18719,45229,44739,17839,14402,44765,3883,17492,44867,44837,9341,5993,17335,44894,6609,44687,37267,44531,45277,44685)
Unknown column 'np.person' in 'where clause'