I know this sounds crazy... I had a 1970 Plymouth Duster which was all souped up, and I went through a period of time where she did not want to start and it was attributed to a bad torque converter [part of auto trans] but since your car has the check engine light on, my guess is you have a bad sensor somewhere.
I am assuming your car is fuel injected.
My 1990 Jeep stalls all the time at first, but that's a choke issue [she's carburated]
Sometimes idling problems can also indicate a clogged catalytic converter - which my 1993 Jeep has experienced lots of times
Might just need a tune up, maybe fuel filter is clogged..... gosh, could be anything.
Car fax comes in very handy if wanting to know the truth of your car, I use it quite a bit when need be.
I also have several vehicles, only two run properly and 1, well I use it only when doing river clean-up.
The other vehicles sit in my yard.................... so I guess I know how that man who sold you your ride feels, except that I am single and don't have anyone complaining