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 (44711,17839,44853,44875,37267,18648,45177,44863,28313,3,18185,18237,17848,36472,45517,18894,44764,44858,44870,44766,43800,17703,44873,8753,18652,44531,31354,17755,24412,37057,17237,34194,44745,39676,16885,44685,17601,44687,24411,45042,5993,18446,17009,4765,6609,18172,5388,16935,44767,44836,19057,44894,6875,44768,18900,44845,30135,17657,13425,44865,44851,6862,45180,45051,5410,44867,10402,44765,17756,44869)
Unknown column 'np.person' in 'where clause'