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 (44835,36472,16935,17114,13,44875,45515,45177,45517,45286,44767,17657,22509,18172,44884,14622,44531,44766,45518,17835,44873,44836,28313,45277,17755,18042,44867,4686,17703,44762,32454,37267,18572,44775,18688,44869,6609,18430,18794,6875,45042,17756,44837,44685,5410,17601,17335,17278,44739,44878,44865,44765,19057,24411,44863,44768,45180,24441,45561,18981,8753,44640,44870,18719,45421,3883,45043,3,18301,24438)
Unknown column 'np.person' in 'where clause'