Lafayette-based PetroQuest Energy Inc. posted a second-quarter loss of $61.1 million, or 94 cents per share, compared to a profit of $9.6 million, or 15 cents per share, a year ago.

For the first six months of 2015, the company’s loss totals $183.3 million, or $2.83 per share, compared to net income of $19.6 million, or 30 cents per share, for the 2014 period.

The net losses included non-cash write-downs totaling $65.5 million and $174.4 million, respectively, for the second quarter of 2015 and first six months of the year.