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 (44884,6609,17492,30135,44711,44845,24441,17278,18652,17848,44768,44868,17756,44762,45421,44764,44745,45516,18894,18572,17335,13425,3,18237,18185,18427,13,18648,17657,44873,9341,45346,17092,17771,17556,13922,44865,17839,17904,44765,45567,44851,45043,44640,30963,4765,17703,17835,44894,17237,45517,44767,44863,45561,10402,32454,44849,6782,5259,45518,18286,44836,18688,17114,14402,37267,18301,18430,5388,24438)
Unknown column 'np.person' in 'where clause'