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 (17904,45515,17835,17556,34194,44858,44853,44851,44762,17771,28313,44878,45042,44854,39676,45516,44867,5993,18353,44849,31354,44836,44764,18172,45072,17981,45043,6782,45421,18427,17278,17527,18719,45517,37057,44884,17492,5259,44870,45277,24411,44856,44640,4765,44866,37267,3,18042,13922,18688,45561,18237,44687,18894,44669,44855,17009,18652,45567,44837,18301,32454,44848,44873,5410,44875,13988,17601,44745,17657)
Unknown column 'np.person' in 'where clause'