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 (44858,17009,45286,18279,44531,16935,6875,43800,17556,44870,18172,44775,45177,13,28313,45262,16885,44854,4765,14622,45072,44884,6609,17755,5388,44766,45277,18794,45051,17657,18650,17848,34194,39676,17835,13922,18353,44867,24441,18996,17335,3,44764,45518,44848,28530,19078,44640,17114,45561,45180,44767,44674,4686,18719,30135,24411,36472,9341,5410,44865,18900,17601,44837,44835,32454,44868,18648,45516,45042)
Unknown column 'np.person' in 'where clause'