A Database Error Occurred

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'html order by project.project_start_time desc limit 0,30' at line 42

select distinct(project.id) as pid, project.project_title as project_title, project.description as description, project.project_start as project_start, project.project_end_time as project_end_time, project.bid_open_day as bid_open_day, user.id as uid, user.company_name as company_name, user.signup_time as signup_time, (select count(*) as total from bid where bid.project_id=project.id) as bid_count, (select avg(bid_amount) as avg_bid from bid where bid.project_id=project.id) as avg_bid, user.username as username, (select avg(review.rating) as provider_rating from review,project_owner,user as provider,review_message, project_status_link,project_status,review as temp,user_status_link,user_status where review.from_user_id = provider.id and project_owner.project_id = review.project_id and project_owner.user_id = user.id and user.id = review.to_user_id and user.id = user_status_link.user_id and user_status_link.status_id = user_status.id and user_status.status = 'Active' and review_message.review_id = review.id and temp.project_id =review.project_id and temp.from_user_id =review.to_user_id and temp.to_user_id = review.from_user_id and project_status_link.project_id = review.project_id and project_status_link.status_id = project_status.id and project_status.name = 'closed' group by user.id ) as buyer_positive from project,project_owner,user ,project_status_link where project_owner.project_id = project.id and project_owner.user_id = user.id and project_status_link.status_id != 6 and project_status_link.status_id != 7 and project_status_link.project_id = project.id and project.is_feature=1.html order by project.project_start_time desc limit 0,30