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 (44689,18572,22509,17351,17848,44765,18981,17657,45177,45051,24412,6875,17981,44884,17335,34194,44687,17703,44768,16935,3,45229,18185,45072,45043,18446,18430,19057,24438,17556,18301,44835,17904,44873,37267,5410,24411,13922,18719,9341,37057,45518,5259,8753,24441,3883,18237,17492,44711,44767,39676,45515,44640,5388,13988,18172,18900,5993,45346,44762,18894,45516,44894,17009,10402,44868,19078,18650,44669,44531)
Unknown column 'np.person' in 'where clause'