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 (37267,17756,5993,37057,14402,44762,3,44865,44884,18353,45515,24411,30986,18427,44689,44853,17657,6862,5259,18446,44849,17009,39676,17601,45277,44837,13,17848,18981,17981,18430,9341,18279,13425,13922,14622,17278,44835,3883,18894,18572,17755,45346,18172,17835,18652,44873,32454,17351,45262,16935,45180,18719,34194,17527,44764,44739,45042,16885,18042,18688,44640,44674,18185,44861,44836,45072,19057,45043,30135)
Unknown column 'np.person' in 'where clause'