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 (39676,17839,30986,16935,24412,44858,17601,18794,44868,44739,18648,44894,44711,5259,45229,44848,17981,44765,4686,45517,22509,44856,18286,45286,45518,18042,3,44873,44851,18427,5993,44745,24438,44685,17335,5410,44775,36472,44861,18652,17755,8753,44687,18650,45262,24411,44867,5388,44836,9341,18301,17657,14402,3883,45277,44869,13,17756,18430,17492,44764,18688,45177,44855,30135,44865,13425,24441,44863,18446)
Unknown column 'np.person' in 'where clause'