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 (45180,17492,9341,6862,44669,17703,5410,44837,44766,18286,39676,44739,17981,18172,18648,18446,44868,17351,14622,44858,44768,6609,44856,4686,44878,17278,45072,18279,44865,45421,13425,44884,17771,17527,44869,6875,18794,44531,14402,44745,44853,44836,18719,45567,18688,18427,45043,17009,37057,5388,17556,8753,44671,17092,17835,44849,17601,16885,18996,44863,17114,24411,36472,45286,22509,3883,18981,17755,44835,18042)
Unknown column 'np.person' in 'where clause'