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 (44855,3883,44671,17657,17601,18286,45567,31354,17848,9341,32454,30135,45518,44762,18719,18996,17839,44884,44767,17755,19057,44775,44851,45042,45051,45286,30986,44869,44856,44711,4765,6609,18794,44870,5259,37267,44531,44848,18279,45561,17904,44873,13988,44853,44836,45277,18688,44863,18652,44745,44669,13,24411,45072,44837,17237,4686,17335,17981,10402,5993,44868,18648,6862,6875,44866,44685,44687,37057,45229)
Unknown column 'np.person' in 'where clause'