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 (44766,17351,6862,18648,45346,14622,32454,3,18446,45561,18900,6875,44687,44869,44870,44851,44674,44845,18185,10402,18353,17009,44863,16885,18572,18650,44762,44856,24411,44835,44640,18430,45043,16935,44894,44884,39676,44861,18652,18719,5259,45567,17556,45180,4765,17981,45515,18042,44689,17904,45518,19057,18301,44739,30986,13425,44711,17839,44878,45286,44836,44767,44853,22509,17492,45277,28313,30135,34194,19078)
Unknown column 'np.person' in 'where clause'