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 (44764,44640,44851,44855,17835,13988,18430,16885,44845,17237,44866,4765,18286,44878,45561,17278,28313,44762,44775,28530,5993,44875,30135,24412,39676,34194,17703,19078,24411,8753,44531,17527,44894,45051,44863,31354,18185,17848,44745,17556,19057,9341,44849,5388,45518,18301,45277,45229,45421,37267,13922,44884,24441,6609,45286,17092,44768,36472,17335,44858,45043,44853,18279,14402,44711,45517,44766,17492,6862,5410)
Unknown column 'np.person' in 'where clause'