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 (5993,19078,17756,45051,44767,17848,17237,17335,17601,18996,45517,6609,14402,17839,18572,44674,17556,44739,43800,37057,36472,44858,5388,44851,18353,18446,44775,18430,18237,34194,45567,17981,16935,44845,17527,9341,5259,44853,18894,13,24438,18427,17114,3883,44762,44685,18794,45277,44878,44671,17657,45515,44863,18981,18286,19057,5410,18172,45286,17092,44766,30963,17351,22509,44868,18652,18279,30135,13922,44873)
Unknown column 'np.person' in 'where clause'