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 (45518,44768,44674,4765,44640,34194,6609,44835,37057,45229,44775,8753,13,18572,10402,17278,18719,5410,17601,44869,36472,18301,44851,45561,17904,45051,44855,44868,44866,44884,3883,44858,9341,17335,44766,18794,44854,3,45286,17839,5993,44745,17492,44848,18996,18652,37267,28313,18430,13922,18042,18648,44865,32454,17556,44764,18427,44853,30135,45515,18353,14402,45516,17657,44878,17755,18446,44685,44845,17527)
Unknown column 'np.person' in 'where clause'