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 (13922,44836,44878,17492,44870,44767,44531,44858,44674,44837,18237,17904,37057,45072,24438,44766,44854,45517,45561,44853,17237,6609,14622,45262,44856,44855,18688,24411,44711,44669,6782,24412,18572,17114,28313,17527,44768,5993,18301,34194,45516,18894,24441,45051,44861,10402,45180,37267,4765,44745,17657,45567,32454,6875,18650,16935,17703,17278,3,5410,44868,22509,17556,44671,44845,18286,13988,44764,18652,44869)
Unknown column 'np.person' in 'where clause'