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 (24438,6862,18172,45517,44865,44878,39676,16885,45421,44739,17492,3,6875,44873,17981,44837,44853,44689,45051,17237,24411,44775,10402,24441,4686,45567,17335,17839,44835,34194,18427,17703,17835,44762,17848,44685,18301,45516,45515,44849,13988,18042,6782,17351,17904,30135,18794,44848,32454,45262,18996,44884,17755,17601,14402,45561,17092,18981,44669,44711,43800,28313,44745,31354,18688,45043,44856,37057,22509,13922)
Unknown column 'np.person' in 'where clause'