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 (44835,18446,44687,18650,18172,5410,43800,13425,45286,44894,44858,44745,44861,18286,44845,17703,44674,18427,13922,44855,45042,22509,24441,44765,17981,32454,17848,6782,45518,17237,18688,18185,45421,45262,17009,44865,18279,17755,13988,37267,30986,17335,18301,44767,24438,34194,44640,45517,24411,17839,17601,44873,18572,17657,24412,17492,18894,4765,44669,30963,45072,45561,44531,44768,18794,45043,30135,44689,6609,45515)
Unknown column 'np.person' in 'where clause'