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 (44894,6875,44875,44845,45561,32454,18237,45567,4686,44685,13922,45421,17092,8753,44856,17278,18996,30135,45515,17848,45072,18042,18572,18301,31354,13,17114,17835,17527,44858,44865,36472,44861,44669,6609,44855,45180,44767,44884,3,18652,18427,18650,24412,18286,34194,44671,45518,44848,44711,39676,28530,18648,44863,17237,37267,18172,16935,44531,44674,44853,17335,44835,24411,45043,17657,45286,43800,17981,5410)
Unknown column 'np.person' in 'where clause'