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,45177,17657,22509,4686,44674,39676,24411,18650,44865,18648,44765,17835,10402,45043,13988,44873,31354,18652,45277,44739,18042,18353,44867,44848,44669,44762,34194,45518,17114,24441,44711,44768,17335,13922,44853,17981,18894,45561,17703,17237,44863,4765,44835,44858,18996,36472,17527,44866,28313,17009,44745,17492,18185,45421,45567,18719,37057,44870,19078,5388,44685,44837,3,45517,17351,5259,17839,44836,18446)
Unknown column 'np.person' in 'where clause'