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 (44853,18900,36472,8753,18688,44836,45051,19057,39676,17601,18648,37057,6782,18794,45517,13,16885,44845,44867,44775,17092,18185,18719,44878,18353,44669,32454,24438,44851,5259,17278,17835,45346,18301,6609,44739,44674,18894,44865,45277,14402,17351,24412,17009,44762,17904,44835,4686,18042,18279,44858,44687,17771,44863,45180,17527,18172,44866,17492,44671,45042,3,44689,45518,17556,18652,45286,31354,3883,44848)
Unknown column 'np.person' in 'where clause'