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 (44531,3883,44858,6875,44853,16885,18301,18353,13,17278,16935,24438,45286,17839,18652,44766,18185,17657,44855,18688,45072,44851,17703,17556,45516,43800,18279,17092,18648,44861,44767,13988,10402,17335,44836,44878,31354,24441,44867,3,18650,18172,36472,17771,6862,14402,44835,45042,17114,18427,44875,44870,24412,17351,44640,4686,17601,5410,37267,44745,44845,44764,4765,44849,45518,44848,28313,44856,45177,5388)
Unknown column 'np.person' in 'where clause'