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 (44764,45043,18900,13,45072,24441,17237,18794,44745,44854,17839,45346,19057,44765,30963,44856,17527,44868,18237,17904,30135,44878,17835,6609,44870,18301,18172,18185,24438,24412,45567,44685,37057,43800,45515,44853,44762,18688,44848,4686,32454,6862,18981,18650,6782,17756,28313,10402,17771,22509,44861,9341,14402,45561,44884,18427,4765,28530,17981,14622,45042,44768,45051,17492,13425,13988,44845,17601,44894,44869)
Unknown column 'np.person' in 'where clause'