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 (44835,44768,37057,18719,18981,44765,44837,45515,18185,19057,28313,44858,24412,45072,17278,39676,44863,36472,44867,17904,45517,17556,18894,44866,45051,30963,5388,18353,45346,17981,45567,17237,45042,18794,18430,44685,13988,44868,30135,17703,45277,37267,45518,18996,44531,17755,18652,18427,44766,17351,34194,14402,18237,44884,16935,44875,45516,17092,28530,45561,6875,10402,44845,44849,44762,44640,45177,17848,17492,18650)
Unknown column 'np.person' in 'where clause'