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 (44745,44768,6862,44863,6875,45229,17657,44671,44835,45262,18900,44531,10402,45518,45177,44858,44870,17556,45277,44867,17237,17009,44711,18237,44855,17771,44853,44875,45517,18301,44836,6609,13,37057,18185,14402,30135,44767,17904,17351,3,45286,13988,24411,32454,44854,44878,44873,44764,28530,45043,39676,18688,44868,44674,44845,5993,44765,18652,34194,45515,19078,45561,43800,44869,17835,6782,17981,13922,17601)
Unknown column 'np.person' in 'where clause'