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 (45177,6875,44848,3,44762,44869,34194,18981,44853,45561,44873,17092,44775,18688,44767,17657,45286,13425,18446,18301,44836,5993,19078,44875,17556,5388,18427,37267,17904,28313,45262,8753,22509,4765,44866,9341,13922,44674,14622,44849,44851,45517,18286,18279,45518,45346,6782,18652,44745,17601,17278,17835,44711,17771,13,24441,24438,18237,44765,6609,36472,17114,44865,4686,44669,6862,24411,44766,28530,44764)
Unknown column 'np.person' in 'where clause'