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 (44858,17601,45072,18286,10402,17981,44745,18572,18719,45042,44848,44671,44764,24441,18996,17527,18427,30963,17092,45177,45043,17009,44768,24412,17703,43800,18981,44870,44867,44884,28313,17657,44835,44767,30135,17278,18900,45180,17237,44853,18042,44711,18794,45421,5388,18652,14622,37057,37267,18353,44878,17839,5410,39676,13988,45262,45277,44845,45567,45517,32454,13922,44766,18650,45515,13425,44865,44836,44640,16885)
Unknown column 'np.person' in 'where clause'