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 (44894,44865,18996,44836,44845,44873,18446,45346,17981,17114,44849,6609,16885,44861,24438,32454,30135,3,5410,45421,17756,37057,44858,18427,44875,5993,17237,18430,13,45518,44766,18286,3883,18900,45262,34194,44669,24412,18894,30963,24441,6875,18185,44762,45517,44687,17703,24411,5388,45042,44531,18172,18650,44837,45180,9341,18981,17278,44711,13922,17835,44870,44855,44745,45515,17527,45277,44854,44775,44856)
Unknown column 'np.person' in 'where clause'