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 (44845,18572,13988,8753,17556,44858,44856,17755,18301,18648,17237,18794,44640,22509,18042,18652,16885,44689,17009,44866,18894,30135,43800,5259,4765,44837,18430,45262,44836,5410,44766,17771,44775,45043,44865,17835,45561,44762,18279,14622,18446,13922,14402,45567,6609,18427,45286,17492,17527,44765,3,44855,16935,24438,32454,44849,36472,44863,24412,44868,44531,17703,30986,45072,45346,44875,44878,37267,45051,44739)
Unknown column 'np.person' in 'where clause'