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 (37057,10402,44531,45277,45262,45042,45561,45421,22509,17278,9341,13988,18719,44861,44671,44775,18353,31354,28530,44837,13922,44873,43800,44868,44858,44865,45515,17755,44687,18996,18648,44640,17237,17981,30986,44762,24441,17114,44764,44745,30135,5410,36472,4765,5993,17492,17839,44669,44870,44689,18301,34194,17601,3,18900,4686,18430,44845,16885,45286,18279,13425,17904,24412,17848,18794,17756,18172,44685,45517)
Unknown column 'np.person' in 'where clause'