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 (6875,6609,44845,17981,17527,5259,16935,3,34194,44762,18301,17848,44685,45262,45043,17492,4765,18279,18172,18430,45051,44884,18794,17756,31354,44739,18996,13,24411,44775,45229,17839,44854,44765,44848,37267,17114,14402,5410,18648,45346,32454,17335,28313,17755,44711,44870,13988,18042,18353,13922,17092,30963,30135,44687,5993,18286,18688,45421,8753,13425,44875,44835,44866,17835,28530,18900,44764,44674,44745)
Unknown column 'np.person' in 'where clause'