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 (18427,17839,44855,39676,18688,44640,17703,18042,17771,13,18900,17904,14622,45567,17527,13425,44868,44856,18572,45515,17492,36472,34194,44848,14402,24412,44866,17556,45262,44765,5993,45346,44878,44689,44845,17237,44711,44849,45072,44835,44768,44875,17981,45286,22509,44865,17755,45043,45229,19057,18185,18981,5410,18652,44531,16935,30986,44767,18286,28313,4765,32454,24438,9341,44685,17278,44745,5259,17351,17756)
Unknown column 'np.person' in 'where clause'