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 (44669,5410,45229,17703,44531,45277,45515,3,24441,17755,17601,19057,28313,44835,44837,44765,44836,6875,5259,44856,45561,37057,45421,17556,44745,18650,18427,44764,45051,4686,44775,17237,44894,44739,6782,44849,5993,44851,17351,18996,45518,18446,30963,19078,44674,45042,17492,17009,44878,45516,18042,37267,44687,45286,24412,30986,45567,44875,17771,24411,24438,17657,18172,18794,18688,13922,16885,14402,18652,45072)
Unknown column 'np.person' in 'where clause'