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 (44685,30135,37267,45262,17657,44531,44669,18286,44863,45072,3,18185,18648,36472,44858,17601,18427,13425,13922,24438,44640,44848,13,43800,44870,10402,44873,45421,24412,44849,13988,4686,44837,18572,34194,16935,17237,45517,18279,28313,45277,18719,18900,4765,44745,44674,5410,44856,17114,45518,45561,19078,18301,44875,18894,17009,17556,45516,18446,17755,44861,22509,18996,18430,44867,18172,28530,17835,44845,44764)
Unknown column 'np.person' in 'where clause'