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,44884,45561,45286,44894,5259,44775,18172,45517,44764,44849,44687,44867,34194,18648,45229,44674,44669,37057,44836,44767,44861,4686,16885,17556,45346,45262,18427,18279,10402,24438,17351,24441,5388,45421,18237,19057,45277,44865,44870,45043,45177,14622,18572,13,44739,44854,18652,44768,17839,45042,17237,17756,6862,44531,17092,44671,30963,28530,6875,18719,17657,18353,30135,37267,5993,17278,17335,17601,30986)
Unknown column 'np.person' in 'where clause'