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 (44669,18430,44768,44671,44875,18286,44884,44836,17657,31354,45072,44865,30963,17755,44868,18172,44764,17092,5259,44894,17009,44687,44845,5993,4765,19057,6609,18996,18652,44745,19078,14402,14622,17114,45286,44867,6862,22509,24411,45516,17278,18042,44685,24441,18572,44674,3883,18688,18427,45277,45421,4686,37057,44765,5410,16885,44856,45346,3,17237,17556,44863,44762,13922,18650,44858,16935,24412,44766,17756)
Unknown column 'np.person' in 'where clause'