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 (18900,4686,44745,44669,18237,18353,14402,17335,45567,18981,13,45346,44856,10402,44762,17981,44858,14622,45072,5993,44849,5259,44863,24438,17114,44845,45043,17657,44853,44531,34194,13922,22509,30986,18286,44640,45042,45561,19057,18794,4765,17848,13988,17237,13425,37267,45515,17278,44867,17492,44711,44855,18894,44870,31354,8753,44685,44764,44868,5388,44689,18719,18172,44866,45051,44873,28313,24441,17755,17601)
Unknown column 'np.person' in 'where clause'