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 (18900,17601,45043,45346,44854,44640,17703,22509,45286,17835,6609,37057,44853,37267,44765,17657,30135,30963,18185,44851,45277,13,17351,44866,45421,44875,39676,44687,44835,45177,44845,45262,44873,17278,5388,44894,44836,10402,28313,34194,45515,45567,6862,17237,45042,16935,17848,14402,44858,44870,18719,4765,18353,17492,43800,18172,44848,44878,18279,3,44867,44837,30986,44849,44745,5259,44669,18652,18301,44689)
Unknown column 'np.person' in 'where clause'