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 (6875,5259,6782,36472,44855,43800,14622,18185,17657,44775,45517,44687,44837,18894,17756,4765,45561,44764,17114,18172,17981,44745,13,44856,44674,44739,37057,13922,24441,45567,44854,24438,18996,6862,18237,44767,24412,45515,45177,17009,44835,18652,45180,44848,10402,44878,44853,44689,17601,17527,18286,45286,37267,44640,13425,44766,16935,30135,17237,17351,45262,44866,44873,22509,28530,18900,44671,44861,44863,44894)
Unknown column 'np.person' in 'where clause'