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 (17601,44762,22509,24412,44869,28313,44767,18353,6782,8753,17848,44854,17703,36472,44858,45229,44884,18794,18648,44764,44531,6875,5410,13,10402,45051,24441,44835,44836,44851,18652,44894,44640,18894,13425,44849,44848,4686,18427,45262,44687,32454,37057,31354,44745,6609,44873,17835,34194,44689,3,17771,17009,17278,24438,18237,37267,14622,18572,6862,19078,18172,44674,13988,44671,24411,17904,44878,17492,39676)
Unknown column 'np.person' in 'where clause'