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 (3,44875,45277,44669,44861,17848,45177,44674,44853,44768,30986,24438,5259,3883,5410,17092,18648,17755,44837,44766,45517,44854,18430,16885,18237,18301,18996,44835,18286,45043,17278,44858,45229,17556,17601,45042,18894,44711,45515,17335,18279,18446,18652,44869,17492,37057,44767,44867,28313,18650,18353,44870,17771,45567,5388,44531,13988,18688,14622,24411,45286,5993,6782,44865,44671,45180,44894,6875,18719,24441)
Unknown column 'np.person' in 'where clause'