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 (18301,13922,16885,28313,18652,44873,18279,17904,44863,37057,44878,17114,18353,45072,4765,45515,44867,44868,44861,30135,18572,44866,24412,19078,44836,44687,24411,44685,18430,44837,44869,13988,43800,17835,14402,4686,17756,18996,45286,44766,24438,36472,30963,45567,44884,22509,5388,5410,44856,45517,18427,6782,44854,44671,44849,17755,18688,18237,18042,45516,44764,17556,17278,44845,8753,44762,24441,6862,17492,45042)
Unknown column 'np.person' in 'where clause'