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 (37267,44884,31354,13,45421,44745,44845,6875,13425,17756,18237,44764,17848,44854,44711,17601,5410,44685,18981,44873,4686,18572,45518,3883,45286,44869,44856,44894,44848,44853,5259,18794,17556,22509,8753,36472,44687,45262,45517,28313,44671,44739,24412,17278,45177,44689,18286,45043,45072,44866,18172,18688,44531,17981,45567,5993,18353,32454,17527,44640,17755,44768,18648,18042,14622,44861,17237,44870,44865,28530)
Unknown column 'np.person' in 'where clause'