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 (45567,17756,18237,44894,18279,3,45516,44861,45042,17904,45518,44739,44766,4765,18794,44835,17335,17848,3883,17009,17703,44884,43800,44768,18301,6862,44764,44851,44674,44855,18430,17492,16885,44640,45515,31354,24412,18042,45072,44875,8753,28313,5259,17556,18996,44775,19057,44870,16935,18688,45051,17835,9341,44849,17755,44762,44873,44867,13922,44689,44869,44687,45286,4686,24438,44866,13988,14402,17351,37267)
Unknown column 'np.person' in 'where clause'