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 (5388,6609,30135,45072,14402,13425,44853,17657,34194,43800,44687,44868,17114,3883,17335,19057,44858,18794,44640,18185,45177,8753,17527,45517,31354,44866,45286,17556,44711,44837,5259,17755,18688,18237,17492,45180,4686,17904,17756,13,45518,44768,45561,44689,18172,17839,18996,45042,24412,44867,44766,4765,44855,13988,22509,18446,45043,44845,45229,28313,44863,18301,18648,3,44762,44767,17981,6782,17848,18652)
Unknown column 'np.person' in 'where clause'