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 (45346,44745,10402,34194,44884,18572,44858,3,44766,24441,8753,43800,45051,44851,44836,14622,44855,44739,44867,44764,24411,44853,17839,24438,17904,44865,45286,17848,44875,37057,17755,18894,18719,18648,39676,13,44894,17835,5993,44674,19057,37267,44768,44671,44866,18650,45043,31354,45042,5410,30135,18446,17335,44848,45180,44849,6609,17601,18301,36472,44845,17492,45518,17703,44870,13988,18237,6782,17527,45561)
Unknown column 'np.person' in 'where clause'