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 (18652,44845,18650,44853,44894,44870,17114,6782,44848,24412,18427,45516,44640,18446,30986,44868,44869,44836,30135,44837,28313,14622,45515,18430,19057,37267,14402,18185,44875,18648,43800,13988,17237,17848,44689,44671,18794,44865,6609,44739,17278,45072,18301,44849,18996,28530,44863,6875,24441,3,6862,4765,32454,5993,18286,45051,18572,31354,34194,44767,18894,44669,18042,44685,44861,17756,18981,44858,17657,45567)
Unknown column 'np.person' in 'where clause'