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 (45043,44835,45421,44868,3,18981,18237,45516,24412,44875,44869,5410,24438,17981,45286,44873,17657,18688,44878,45567,44711,18572,44870,36472,19078,17009,30963,44739,17601,9341,17703,13988,17755,44674,44856,5259,18719,18185,44855,45561,44685,44689,18353,44865,45177,18446,44762,17904,45277,44640,45515,18894,13,18794,14402,17092,39676,3883,17556,44766,44836,44884,44861,17756,45229,44866,17492,44768,18279,43800)
Unknown column 'np.person' in 'where clause'