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 (16935,19057,31354,3,44848,30963,17981,14622,17904,17278,45277,6609,17237,13425,18353,44866,17771,44849,5259,18572,6862,44853,17703,32454,44873,4765,45567,13988,44868,18900,24441,44671,37057,45421,18430,44865,44775,44531,44739,43800,44711,24411,18427,45561,18301,44851,44766,18688,17527,17601,18650,17835,18794,44836,24412,37267,17839,18286,44835,5388,44689,44870,17755,44858,18172,9341,8753,17848,44861,45177)
Unknown column 'np.person' in 'where clause'