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 (24412,45262,3883,9341,45051,18572,30986,44711,13922,45277,44884,44853,17556,45229,44861,17771,18981,44875,17492,37057,18286,18650,44764,45567,17904,5410,44868,17657,44845,16935,44873,17848,19078,18279,44837,45561,32454,5259,4765,17703,13425,44848,44851,18719,17114,44767,6609,5388,22509,44849,17835,44775,14622,45517,30135,18794,16885,24411,18301,44671,4686,44865,36472,18237,28313,45515,44766,17601,44836,44531)
Unknown column 'np.person' in 'where clause'