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 (18286,44861,18446,17835,6609,45516,3883,44856,45262,44766,44837,14622,17351,18301,30135,44775,17009,45515,17237,45561,18427,17981,18279,30986,44671,44768,24441,30963,44685,44711,44867,44835,37057,18794,44848,43800,17755,18430,44868,44866,44836,18719,18237,44873,18353,17278,6862,17771,44858,18894,24438,34194,44762,44745,44669,6782,22509,39676,28530,17601,17657,17848,9341,24412,17904,44865,45180,5259,44851,17839)
Unknown column 'np.person' in 'where clause'