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 (45567,45262,45177,44640,17114,44849,16885,17092,44854,44835,44767,39676,4765,13,17848,45229,44870,17009,44775,18353,44875,45180,44745,44894,45042,44878,24411,44669,5259,45517,45421,19078,45043,28313,17839,24441,9341,18894,44685,18427,44848,32454,17981,44853,37057,44671,44845,44858,45516,45561,8753,44861,44765,45346,44768,44884,18688,18042,18572,45277,44873,3,14402,44868,30986,18652,44739,17904,18446,44865)
Unknown column 'np.person' in 'where clause'