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 (24441,44865,16885,18301,44674,45180,28313,45229,17492,45051,44767,5993,3,18688,18650,44640,17114,17839,36472,44745,32454,6609,44856,18286,5388,44875,18430,24412,45517,37267,17556,45262,17657,45516,18719,44531,30986,44855,44851,14622,37057,44837,17092,44884,44894,17601,34194,44671,18427,44873,45277,24438,17351,45421,13425,45518,44764,6875,44868,4765,44739,44762,18572,17981,45177,18172,44835,30963,5410,14402)
Unknown column 'np.person' in 'where clause'