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 (45051,17839,45229,44878,17335,44671,44768,44687,17527,44762,14622,44845,18286,45421,24441,16935,14402,18719,44836,13425,44767,44531,6609,18279,13922,19057,18301,45515,18794,18894,30963,18648,17835,37057,45177,37267,17601,45277,3,31354,45346,36472,44868,24411,44854,18981,44640,45042,44866,19078,43800,45286,44858,17278,9341,6875,18172,18237,45043,30986,44855,45518,17092,3883,5410,44869,6782,32454,22509,17981)
Unknown column 'np.person' in 'where clause'