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 (17755,18996,18237,16885,36472,5259,17839,44768,44685,18794,6875,9341,44766,45262,43800,44845,44849,19057,44689,37057,17492,45177,17351,44765,44835,44866,17278,13988,32454,16935,13,24441,45229,44674,6862,44836,18894,44531,18042,8753,44858,4765,5388,45346,18981,17527,17756,28530,45072,18688,18719,44865,44873,37267,18572,44884,17335,17904,45517,5993,18185,45421,18279,18900,24411,44870,44853,6609,45567,18301)
Unknown column 'np.person' in 'where clause'