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 (37057,3,44671,17092,44867,44865,19057,14402,36472,14622,24438,45515,45051,44765,17114,45180,24412,44863,44531,18353,18648,44674,44848,17237,28313,45277,34194,32454,13,18286,44868,44845,17848,18996,13425,44894,13922,17904,24441,44856,30135,22509,18652,44762,44884,44767,17278,17351,45262,45286,44768,44640,44853,17835,45346,45072,31354,9341,45516,44870,18301,17771,18237,5993,18650,44711,17981,44873,16935,43800)
Unknown column 'np.person' in 'where clause'