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 (18648,37057,44854,18042,44764,13922,44837,44836,45043,34194,17009,8753,30986,18688,17835,18353,45051,44845,44855,17657,17092,45262,44875,28530,45277,17848,44689,17904,45286,31354,17756,17278,18900,24438,6609,17237,22509,18981,6782,9341,32454,45072,5410,18446,44687,3,44669,18794,24411,13988,44835,44711,28313,45346,44531,30135,44878,44870,45561,18301,39676,44856,44866,44851,18172,44775,44766,18652,17556,45517)
Unknown column 'np.person' in 'where clause'