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 (37057,3883,14622,19057,44878,44836,18650,45072,44870,17335,44894,45043,45277,45515,45051,44531,18648,44767,17756,44854,45042,24411,39676,6875,18237,17703,44866,5259,17839,24438,44875,37267,17556,28530,44674,44689,44867,45518,19078,18688,13,44863,44775,22509,44768,17237,18652,44858,44687,44837,18427,44856,18719,17278,18572,44765,3,17492,24441,18446,17601,44671,45516,13988,36472,44884,17755,10402,17981,18894)
Unknown column 'np.person' in 'where clause'