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,13,28530,44865,16885,17351,44765,44853,18900,18430,44674,45072,6875,6609,17237,17835,37267,44767,4765,17904,30963,45515,17657,18172,17981,45043,34194,17114,44836,39676,44745,44739,14402,18237,18446,44669,44867,45517,45229,24441,30135,4686,44640,17092,45277,22509,44671,45567,44685,17278,16935,17492,45180,44775,18286,44858,45346,44687,44894,17756,44869,44711,44856,44845,18279,18981,44762,24412,44764,44837)
Unknown column 'np.person' in 'where clause'