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 (44849,17527,18279,28313,5410,45229,18981,28530,17351,45515,44745,6782,44640,17009,45262,44835,44866,44854,44765,19057,17601,18719,17904,44851,17492,45177,17848,45180,6609,6875,4686,44766,45286,44674,24412,17755,44762,45421,18688,37267,44894,18042,45517,18172,44711,24441,39676,3,18446,44858,13922,37057,5259,44687,44739,45277,44867,30963,14402,44836,44685,45518,30986,14622,44848,13988,18185,45516,44865,17556)
Unknown column 'np.person' in 'where clause'