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 (18185,17335,13922,44858,17771,44869,44739,44865,18996,44870,45518,4686,18650,24412,28530,17278,10402,44873,45561,44894,44837,18286,30986,24411,45346,17756,5993,45515,4765,9341,19078,17492,16935,37057,14402,45042,44855,3883,44711,18172,17848,22509,18688,13988,36472,44878,18894,44765,44766,44849,34194,44866,44868,17237,44640,45229,45180,17601,18427,44764,17556,44775,44861,44671,17835,16885,45277,17755,31354,44669)
Unknown column 'np.person' in 'where clause'