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 (44687,44870,18286,16885,18996,37267,17335,39676,44762,44671,22509,34194,44869,13425,17904,18688,44853,17527,17657,17092,18353,44745,45518,45229,36472,30963,18719,44640,24412,44674,6782,44863,30135,44739,45561,18279,44837,17009,17492,17848,30986,13,44711,18427,19057,6609,18172,45043,45051,45277,44764,9341,44845,5259,17278,18301,44867,45567,44835,18794,45072,19078,8753,14402,44689,18648,17755,44531,44875,44855)
Unknown column 'np.person' in 'where clause'