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 (44848,44745,18894,8753,17278,18185,30986,18353,18427,30963,19057,18286,24441,18900,44873,18279,24412,37267,24438,18688,44739,18650,45072,18719,18301,44766,32454,45043,44865,18172,9341,45561,17527,45262,17601,36472,5259,44764,17755,13,4686,45229,45180,44775,3,28530,6862,13425,18794,34194,45051,17237,17492,18996,16885,17657,45515,44853,44869,5388,45346,3883,17771,13988,6875,17335,14622,44856,44711,18446)
Unknown column 'np.person' in 'where clause'