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 (24438,44875,44775,18894,44863,6609,17351,44762,5259,44878,18688,13922,34194,45180,18446,44674,5993,44766,17237,44836,6875,44856,28313,45286,44867,44764,45229,37057,44671,13,44894,44640,18427,6862,4765,18185,13425,44687,44884,17904,36472,17848,17009,43800,14622,18353,44873,17278,31354,44849,44858,18286,44835,44865,19078,17601,44689,10402,18430,17114,45567,18650,17527,32454,44854,6782,17556,44745,22509,37267)
Unknown column 'np.person' in 'where clause'