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 (24411,17601,18688,44687,17703,17237,44878,5410,17092,44689,18996,9341,18185,17278,44837,37057,18650,18794,44767,32454,45518,44853,44854,18279,19078,44640,45262,5388,17904,22509,17756,18042,44765,17114,44869,44861,28530,4686,44863,18172,24412,13922,44739,5993,31354,17755,45561,18652,44873,44884,45517,44775,37267,44855,45346,18353,30986,30963,17839,44868,18301,44669,45051,3,24441,18719,44671,44848,6862,45043)
Unknown column 'np.person' in 'where clause'