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 (17114,39676,17848,5410,18794,17278,44689,43800,18652,45421,44837,45277,45567,44863,44855,28313,17981,14402,34194,44858,45072,44687,44775,44868,16935,45516,44669,6609,19078,19057,44851,31354,18042,10402,6862,18719,18286,17755,4765,30986,44531,44674,18301,5993,18185,18688,28530,45518,44865,44870,44640,24438,32454,3883,44764,44856,45346,18237,30135,44845,45177,17703,44745,18900,24441,30963,44711,13922,44835,44878)
Unknown column 'np.person' in 'where clause'