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 (10402,45421,44875,43800,18794,5388,18301,17835,44837,4686,17114,44640,17237,44711,18996,24411,44869,17492,22509,17981,44845,44689,44764,44765,44865,44868,17351,6862,30963,36472,44762,6875,44836,45567,44866,13988,37057,45518,17556,45229,18719,24412,45262,18042,17904,13425,44858,17009,18981,18430,44766,44745,13922,44687,37267,17756,45177,45516,19078,24441,18446,18185,17092,3883,5259,16935,17601,44856,45286,18353)
Unknown column 'np.person' in 'where clause'