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 (18652,18688,44854,6782,6609,44671,45051,45561,44869,17351,13,44868,45262,44855,44845,30135,44768,44851,44669,19057,18794,4765,18996,44766,44775,44875,18042,24441,18301,18894,18286,17237,17278,18430,45518,44687,17335,30963,44861,17556,44689,16885,44863,17755,3,14402,44866,17009,18279,18237,5259,44674,17771,44836,28313,44837,44848,18650,17904,10402,17839,45042,3883,44711,18353,6862,45229,4686,44767,44745)
Unknown column 'np.person' in 'where clause'