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 (18185,44745,45518,13988,44845,44873,44762,17237,18042,44766,17771,44865,44848,4686,44687,44671,30963,18794,45072,24441,44863,3,37057,18981,17601,5259,44849,45262,32454,17756,44869,45229,44775,17335,44768,30986,44861,45515,14622,44855,9341,6782,18688,17755,6609,10402,18996,44685,17835,18719,6875,17278,24438,34194,30135,5410,18237,43800,14402,13,17527,22509,45346,45561,17703,18353,44856,17657,44765,16935)
Unknown column 'np.person' in 'where clause'