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 (5993,17092,45177,5388,17755,44745,18996,18427,44764,18042,34194,18185,30135,44848,44640,44855,44866,30963,44836,18894,24412,17351,24441,19078,17601,18794,17771,45229,28313,39676,44878,17904,44861,17657,44863,45567,44873,44884,37057,44851,13,18172,17756,18301,44765,44766,17527,18900,24438,44835,44671,45042,44894,18446,24411,18981,17009,44768,36472,18353,44669,45277,44711,6609,44845,17556,18572,44531,45518,16935)
Unknown column 'np.person' in 'where clause'