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 (28313,44835,44669,17904,45072,45277,44867,18185,44853,6875,45229,39676,45262,8753,44849,13,44745,18446,18279,30135,17527,44855,19078,45561,44865,17703,5259,6609,44878,44837,45051,31354,16935,14622,18286,17601,36472,18353,17351,44764,18430,16885,14402,44858,44765,44768,45346,44762,10402,44863,44775,44689,45567,17771,18981,5388,4686,44869,34194,44711,19057,18301,17848,18572,28530,44739,18996,13988,18172,37057)
Unknown column 'np.person' in 'where clause'