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 (45262,30135,4765,17755,44640,44868,18427,44739,44851,44674,24411,45561,18237,3883,30986,34194,18894,5259,18279,18688,17904,18652,45177,45286,44848,24412,18042,17351,45051,44865,18650,44835,44745,45518,37267,44669,18185,44863,45516,14622,5410,18286,18996,22509,32454,44768,45042,3,39676,13922,44836,6609,18301,18572,13,44878,45517,44849,18981,44711,9341,24441,44762,45515,45277,44866,17092,28313,36472,44875)
Unknown column 'np.person' in 'where clause'