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 (45051,45517,45346,44866,44861,17756,37267,18353,17556,44685,44764,30986,17009,5410,28530,17351,17771,17092,28313,17657,45072,45177,18237,44671,39676,45286,18185,44884,5259,44845,18301,44855,24438,31354,45516,43800,24441,44856,44531,9341,44640,37057,8753,34194,10402,44868,44745,45515,17278,44875,4765,44674,24411,17848,45561,18446,16935,44865,18652,17527,17904,5993,17114,44689,45262,44739,6782,18172,6609,44853)
Unknown column 'np.person' in 'where clause'