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 (17237,6875,17657,45346,24412,44848,44855,17278,44849,36472,45072,18648,28530,17771,14402,18279,18427,17981,24411,44767,17835,44884,37267,44674,17848,44869,44835,44845,5388,44870,17009,45518,44867,13988,44687,44531,44866,45043,13,44894,28313,5993,24441,6862,44764,13425,17527,4686,6609,45277,32454,45286,18794,13922,45515,44711,17092,44868,44851,44861,44689,18996,17601,44854,18172,16935,44836,44765,44669,30986)
Unknown column 'np.person' in 'where clause'