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 (44775,45043,18279,45518,17556,18894,18172,37057,17009,18430,44835,44861,30963,17835,13,45515,44767,24438,44863,44867,18353,17237,17114,30135,44894,44762,18185,31354,24412,44640,17278,43800,45516,44674,34194,17755,44849,18794,30986,24441,17756,44865,9341,18900,17527,45421,24411,19057,18981,17492,44854,4686,44689,18237,44671,44856,44853,44765,44687,18042,17981,44868,44739,44711,5388,14622,18652,45277,45346,45567)
Unknown column 'np.person' in 'where clause'