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 (44878,18185,45567,3883,17351,44671,45286,45421,44768,44835,17848,17904,45262,45515,17009,44837,44866,44765,18446,44873,45051,37267,44867,44865,44669,44836,24441,6609,19078,44739,44849,44531,30963,44855,18981,45229,18279,18286,45346,17092,45180,44853,17556,28530,44861,13425,24411,36472,5993,18894,18900,44775,3,14402,17703,16935,17657,44845,17335,45516,17756,44848,13922,10402,44689,18042,28313,44875,18652,18427)
Unknown column 'np.person' in 'where clause'