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 (44848,17278,31354,14622,24438,44837,24411,44873,44768,5993,44711,18185,18719,44853,44669,9341,44856,44845,17657,44687,17335,45262,30986,45043,45286,44894,44640,10402,44870,44868,44531,44775,45421,44867,19078,18172,18572,18650,44739,30135,17904,17755,44767,5410,44689,17835,18652,16935,17237,44869,45561,6609,18794,44858,18430,45516,13425,18996,4765,6875,37267,13,32454,13988,4686,17771,17601,17556,44835,44875)
Unknown column 'np.person' in 'where clause'