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 (44762,18900,16885,5410,44863,17278,44775,44869,44866,13922,18894,18286,43800,30135,17335,18237,32454,3,18794,44873,30986,18446,44867,18185,17755,44687,44837,18172,18279,44765,13,18652,44856,44711,17771,18572,45180,44669,45042,44861,44836,44640,44865,34194,18353,44853,17527,17351,17009,17114,17492,17237,28313,18981,44531,44689,44674,44671,44767,24411,45561,8753,6875,18688,18427,28530,45346,24441,3883,44868)
Unknown column 'np.person' in 'where clause'