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 (24438,37267,44775,45516,44875,44869,45421,17278,17492,24412,28313,18286,6609,44855,14622,45561,10402,44711,18688,18996,45043,24441,17848,5388,9341,17981,44671,18719,44835,30135,45072,44866,45567,19057,44669,44851,18353,45042,17904,4686,44867,44689,18652,13988,5993,3883,18900,8753,44845,32454,44894,18042,17839,18572,45262,45346,13922,44854,17009,45051,17755,45517,44863,30986,43800,44768,18279,18446,18172,17335)
Unknown column 'np.person' in 'where clause'