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,19078,45277,17092,44875,44853,6609,44867,44873,6862,17755,17556,18996,36472,45346,18572,16935,44845,30986,37057,45262,4765,44671,45051,44687,44739,13425,17771,17278,45180,44837,17981,28313,44851,45515,18688,44868,44861,17839,30963,45517,17904,24412,45518,32454,44775,18286,18894,30135,13,45177,18652,44849,17848,18301,18446,44848,22509,14402,44531,17657,9341,18172,17335,44858,18650,5388,18042,44768,44765)
Unknown column 'np.person' in 'where clause'