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 (44894,44764,5259,17492,45277,44861,44640,44856,17755,6862,44775,45051,44878,24438,44767,36472,45518,45043,17527,44867,17904,17092,44854,18794,45515,44884,13425,18237,13922,39676,17601,18185,17839,24441,9341,44849,19057,3,45229,17278,44685,44865,44765,16935,44766,43800,18719,17756,17657,18996,44674,31354,13,16885,18279,17703,44531,45286,18301,44687,14402,45517,17556,44836,17848,45072,14622,10402,44739,24412)
Unknown column 'np.person' in 'where clause'