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 (45421,30986,44869,17839,44858,13425,45262,18301,17904,45517,17351,44894,18894,24411,44685,44865,14402,44848,45180,17335,44762,44671,32454,44870,5410,3,5259,22509,44845,16935,44835,44775,43800,45043,45561,36472,44884,18172,37057,45518,13988,45515,44849,44766,18652,44873,45277,17278,44768,44854,17848,24412,17755,17601,17657,45567,19078,18719,45346,17981,17703,18794,18427,18042,16885,44764,28313,3883,5993,13)
Unknown column 'np.person' in 'where clause'