running a SQL query in a Perl script I got error:"Segmentation fault"

the query and script finished properly as if no error occured

here is the query:

Code:
select id from courses_tbl where id='54'
I noticed that if I change the 'id' in the where clause to something else, it doesn't appear, for example it doesn't happen with this:

Code:
select id from courses_tbl where id='55'
so for some records it happens and for some it doesn't. really weird.

this is SQL 2008 I'm talking about.

any ideas ?