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 (44870,44867,43800,17771,30135,17278,18981,45517,17092,24412,18894,6862,18719,44685,8753,6875,44845,44674,36472,18185,44640,18688,44766,18652,18286,24438,17839,37057,17114,14622,44884,44848,18353,44762,44866,17848,45516,9341,44869,45346,18427,18446,44853,44687,18279,17556,44865,32454,44669,45262,30986,44767,14402,6609,44671,13988,18237,17527,16935,45286,18172,17904,5388,18042,17756,44855,45229,45518,24411,45515)
Unknown column 'np.person' in 'where clause'