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 (18794,44739,44858,13922,44767,18996,18185,14402,18652,44775,45262,6782,13425,37057,44766,44836,17492,36472,44849,17556,17351,44762,5410,18301,18446,44765,13,18430,30135,18279,44865,30986,18650,18648,44674,44848,9341,45286,45567,18572,44855,3,5388,32454,39676,22509,44687,4686,17835,17839,45517,44870,6862,24412,45421,17092,44837,45346,13988,44868,44861,24438,31354,10402,18688,17237,44745,18900,24441,44640)
Unknown column 'np.person' in 'where clause'