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 (4686,18237,44866,16885,44851,13,44863,5259,18996,18279,44884,44671,24412,30986,17981,44745,18427,44858,17904,44837,44853,30963,45072,16935,44768,45567,17492,45180,44766,44861,45516,17601,3883,3,18794,18286,44764,45517,18894,17771,14402,24438,44855,36472,44767,45042,9341,45262,18172,17092,18688,37057,19057,44870,13425,45277,17556,44836,45051,44762,18981,44845,44669,44531,6609,17703,32454,44875,44687,18353)
Unknown column 'np.person' in 'where clause'