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 (36472,44865,10402,31354,18794,45286,18981,44767,44775,6782,17981,37267,45518,44849,45042,45229,44858,44711,17756,6609,17835,9341,4686,19078,17771,17351,44878,17904,17527,44867,18652,44848,19057,34194,18353,45072,18279,44745,17556,13,14402,44868,45515,17278,3,18996,13922,17492,18237,44674,24441,18648,28530,30963,44884,44894,17657,24412,44836,18446,5388,24411,18430,18042,44863,16885,37057,28313,45177,30986)
Unknown column 'np.person' in 'where clause'