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 (18301,24438,44869,18185,18981,17556,44689,45561,30986,45421,44762,44764,9341,37267,14622,4765,5993,18650,44765,44875,18430,44894,45277,39676,44858,18996,5410,24441,17351,17278,18286,6862,44836,18279,17904,44687,18042,17527,17848,44856,45286,18172,17335,45177,44854,44745,44845,44711,44855,14402,44669,16935,13988,36472,10402,17601,19057,44853,17114,44766,17657,44870,18237,22509,17835,18794,18894,44685,13922,44867)
Unknown column 'np.person' in 'where clause'