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 (37057,44873,44867,44861,18301,45516,13922,44849,44689,24411,17601,45277,3883,44865,17756,44856,17278,17556,36472,45177,45180,5259,4686,16935,28313,18353,5993,18794,44671,18688,24412,6875,44878,44848,18996,44863,18446,18650,44868,14402,44894,45421,44766,44869,44764,45042,44775,44640,45515,18185,10402,44837,9341,45262,44674,17114,31354,6609,17351,18719,17839,17848,17527,32454,6862,3,17092,37267,18981,18172)
Unknown column 'np.person' in 'where clause'