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,8753,17278,13922,44745,18794,4765,18042,44837,44711,44856,13988,36472,17092,44845,18996,19078,4686,18427,5993,18172,45072,18279,44766,19057,18648,17981,24441,45177,44669,44868,44870,22509,10402,44687,17009,34194,44851,45346,44689,18719,6875,17848,44762,44775,17835,45421,30963,5388,28530,45262,45515,44866,14622,30986,44894,6862,44858,39676,45229,24412,45051,44869,44739,44767,13425,45561,44836,45180,18286)
Unknown column 'np.person' in 'where clause'