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 (18894,5993,44894,3883,18185,44863,45515,45277,18572,18353,45051,45042,44866,17492,44853,24441,31354,17835,43800,18650,39676,18900,17009,17755,44775,44884,37057,14402,45180,44848,45229,44745,18279,44671,44865,44870,30963,32454,44867,34194,44854,19057,8753,44766,22509,45286,44837,44869,44875,13988,44640,45262,17556,44767,44739,17278,45177,36472,6862,17981,44851,44764,44835,18719,5259,37267,44689,44858,45561,17848)
Unknown column 'np.person' in 'where clause'