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 (18981,17904,17835,18042,45042,4765,30135,44764,17492,17009,16885,30986,18353,44671,45517,45180,14402,18286,44856,44863,44766,6862,6875,36472,44868,9341,45177,44689,44870,44711,39676,10402,44669,17527,43800,44768,17981,44873,16935,45051,28530,24411,17237,44851,18427,44835,44855,17771,37057,13922,17848,17278,44745,5388,45515,18650,45262,45286,17351,44845,17703,13425,45229,18688,45516,44848,17657,19057,17335,17756)
Unknown column 'np.person' in 'where clause'