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 (44870,44875,44767,24411,45072,19078,18572,18185,17009,44845,37057,44894,44764,17657,5410,45277,18430,44671,37267,44531,45421,16885,44775,6609,44848,18353,18286,17527,44869,17835,18648,36472,28530,17278,34194,44685,14622,18237,17904,44689,44863,44768,45051,45043,5993,32454,4686,30963,44861,44854,44865,17756,17839,44837,45180,44878,45346,24441,13425,45177,6875,39676,8753,5259,14402,45515,22509,44745,18301,18794)
Unknown column 'np.person' in 'where clause'