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 (17904,44836,5993,5388,18237,17237,24441,10402,18900,44873,18794,18301,44674,45177,18652,17756,18430,18996,45567,18719,43800,45051,45072,13922,45516,24411,28313,39676,44837,44745,17703,18353,17351,18446,45421,44687,17492,44861,44854,28530,34194,45180,44766,45517,45515,44835,17981,44762,44775,44878,18981,37267,44849,18894,45262,24412,17657,17335,17848,18279,44671,6609,45277,5259,44853,45229,44858,31354,30963,44689)
Unknown column 'np.person' in 'where clause'