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 (18981,18652,45561,45180,28530,34194,45042,36472,5388,24412,45277,44711,44868,45515,3,17771,44669,8753,19078,24411,44640,10402,44689,32454,18794,45286,13425,18446,45421,45567,45518,6875,44866,9341,45043,45262,44845,18185,18427,37057,24438,44849,31354,44848,45051,18894,30963,44861,6862,44768,44894,18996,30135,44685,44854,44766,44745,17009,44762,28313,14402,6782,4765,44837,17756,44858,44884,45072,17278,5410)
Unknown column 'np.person' in 'where clause'